From bbd85319efaf2e9af21a42b5ef6b3d76812457cd Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Sun, 25 Oct 2009 13:26:26 -0700 Subject: makefile: use more sane rules for regenerating build.h/compflag.h Signed-off-by: Steven Noonan --- crawl-ref/source/makefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'crawl-ref/source/makefile') diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile index 22a9118bb5..a34a59fedd 100644 --- a/crawl-ref/source/makefile +++ b/crawl-ref/source/makefile @@ -618,19 +618,15 @@ endif endif -.PHONY: compflag.h build.h version.cc - # This information is included in crash reports, and is printed with # "crawl -version" -compflag.h: +compflag.h: $(OBJECTS:.o=.cc) $(QUIET_GEN)util/gen-cflg.pl compflag.h "$(CFLAGS)" "$(CFLAGS_L)" "$(LDFLAGS)" -build.h: +build.h: $(OBJECTS:.o=.cc) $(QUIET_GEN)util/gen_ver.pl $@ $(MERGE_BASE) -ifneq ($(MAKECMDGOALS),install) version.cc: build.h compflag.h -endif ########################################################################## # The level compiler -- cgit v1.2.3-54-g00ecf