From 2ded9f3e09a787df91bed0cbd01f866582d65f6a Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Thu, 25 Feb 2010 16:38:05 +0100 Subject: [PATCH] Make the revision file if it does not exist. --- GNUmakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index a9a50fe..9d67667 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -225,7 +225,8 @@ revision.h.tmp: version.h: revision.h revision.h: revision.h.tmp - @if [ '$(GIT_REVISION)' != '$(OLD_REVISION)' ]; then cat $@.tmp > $@; fi + @if [ '$(GIT_REVISION)' != '$(OLD_REVISION)' ]; then cp $@.tmp $@; fi + @if [ ! -f $@ ]; then cp $@.tmp $@; fi $(autotest_OBJECTS): autotest.c $(MSG_CC) $(CC) -c $(CFLAGS) -Isrc -o $@ $<