From 545ae83d0789b82468503177ee5ac075e9482a57 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 26 Apr 2009 20:54:49 +0000 Subject: [PATCH] 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 --- Makefile.am | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index d8b54d72..158b7619 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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