changeset 26569:a92ab298a11f

Rebuild version.h only when the working directory was updated.
author diego
date Wed, 30 Apr 2008 10:57:45 +0000
parents 70bfc423dd45
children 36948c17c4af
files Makefile
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Wed Apr 30 09:30:05 2008 +0000
+++ b/Makefile	Wed Apr 30 10:57:45 2008 +0000
@@ -719,8 +719,11 @@
 dep depend: $(DEPS)
 	for part in $(PARTS); do $(MAKE) -C $$part depend; done
 
-# rebuild at every config.h/config.mak change:
-version.h: config.h config.mak
+# rebuild version.h each time the working copy is updated
+ifeq ($(wildcard .svn/entries),.svn/entries)
+version.h: .svn/entries
+endif
+version.h:
 	./version.sh `$(CC) -dumpversion`
 
 help_mp.h: help/help_mp-en.h $(HELP_FILE)