summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makefile
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2010-01-02 16:06:23 -0800
committerSteven Noonan <steven@uplinklabs.net>2010-01-02 16:08:59 -0800
commit985744902fd6c56fe3c30a2d1a00aeacfffba475 (patch)
treef82eb765da507fa34aafd5eb6c0380c2e57dbf27 /crawl-ref/source/makefile
parent41a83b477cbdb0629bdf741e6a685a287c6ccd20 (diff)
downloadcrawl-ref-985744902fd6c56fe3c30a2d1a00aeacfffba475.tar.gz
crawl-ref-985744902fd6c56fe3c30a2d1a00aeacfffba475.zip
makefile: don't check .cflags or *.d files on clean targets
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/makefile')
-rw-r--r--crawl-ref/source/makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile
index af97ea4fd0..b926b2c659 100644
--- a/crawl-ref/source/makefile
+++ b/crawl-ref/source/makefile
@@ -720,6 +720,9 @@ all: $(GAME)
test:
./$(GAME) -test > /dev/null
+
+ifeq (,$(findstring clean,$(MAKECMDGOALS)))
+
#
# CFLAGS difference check
#
@@ -748,6 +751,8 @@ DEPS := $(shell ls $(OBJECTS:.o=.d) 2> /dev/null)
-include $(DEPS)
+endif
+
# This information is included in crash reports, and is printed with
# "crawl -version"
compflag.h: $(OBJECTS:.o=.cc)