# HG changeset patch # User diego # Date 1209553065 0 # Node ID a92ab298a11fc049baab36858598eb76d1734735 # Parent 70bfc423dd45c0abc3a78969a6aeb15f19124f8f Rebuild version.h only when the working directory was updated. diff -r 70bfc423dd45 -r a92ab298a11f Makefile --- 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)