summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makefile
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2009-10-25 13:26:26 -0700
committerSteven Noonan <steven@uplinklabs.net>2009-10-25 14:11:50 -0700
commitbbd85319efaf2e9af21a42b5ef6b3d76812457cd (patch)
tree1fca9e2685be5c890961180ccbcb0cc06a485e37 /crawl-ref/source/makefile
parentc0be22150c25b2abac2c6395c0d9995feeaac973 (diff)
downloadcrawl-ref-bbd85319efaf2e9af21a42b5ef6b3d76812457cd.tar.gz
crawl-ref-bbd85319efaf2e9af21a42b5ef6b3d76812457cd.zip
makefile: use more sane rules for regenerating build.h/compflag.h
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/makefile')
-rw-r--r--crawl-ref/source/makefile8
1 files changed, 2 insertions, 6 deletions
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