comparison Makefile @ 33583:a39c61198f93

build: Simplify version.h dependency generation.
author diego
date Sun, 19 Jun 2011 17:33:16 +0000
parents 42b250e4f40e
children 4dc685f18963
comparison
equal deleted inserted replaced
33582:d9a4365d1006 33583:a39c61198f93
837 837
838 help_mp.h: help/help_mp-en.h $(HELP_FILE) 838 help_mp.h: help/help_mp-en.h $(HELP_FILE)
839 help/help_create.sh $(HELP_FILE) $(CHARSET) 839 help/help_create.sh $(HELP_FILE) $(CHARSET)
840 840
841 # rebuild version.h each time the working copy is updated 841 # rebuild version.h each time the working copy is updated
842 ifeq ($(wildcard .svn/entries),.svn/entries) 842 version.h: version.sh $(wildcard .svn/entries)
843 version.h: .svn/entries
844 endif
845 version.h: version.sh
846 ./$< `$(CC) -dumpversion` 843 ./$< `$(CC) -dumpversion`
847 844
848 %$(EXESUF): %.c 845 %$(EXESUF): %.c
849 $(CC) $(CC_DEPFLAGS) $(CFLAGS) -o $@ $^ 846 $(CC) $(CC_DEPFLAGS) $(CFLAGS) -o $@ $^
850 847