Permalink
Browse files

Fix make install without write privilege to the source directory

by not using a temp file in there for irssi-version.h.
Note that this will still not work if the source has changed
since it was compiled, but that is to be expected.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5062 dbcabf3a-b0e7-0310-adc4-f8d773084564
  • Loading branch information...
1 parent f9974d4 commit 0ed38ebf45cb05e45b5df169162937fc8e675167 jilles committed Apr 26, 2009
Showing with 1 addition and 3 deletions.
  1. +1 −3 Makefile.am
View
@@ -10,9 +10,7 @@ default-config.h: $(srcdir)/irssi.conf
default-theme.h: $(srcdir)/default.theme
$(srcdir)/file2header.sh $(srcdir)/default.theme default_theme > default-theme.h
irssi-version.h:
- $(srcdir)/irssi-version.sh $(srcdir) > $@.tmp
- cmp -s $@.tmp $@ || mv $@.tmp $@
- rm -f $@.tmp
+ $(srcdir)/irssi-version.sh $(srcdir) | cmp -s - $@ || $(srcdir)/irssi-version.sh $(srcdir) >$@
SUBDIRS = src docs scripts

0 comments on commit 0ed38eb

Please sign in to comment.