diff options
author | Steven Noonan <steven@uplinklabs.net> | 2009-10-12 01:58:51 -0700 |
---|---|---|
committer | Steven Noonan <steven@uplinklabs.net> | 2009-10-12 03:57:37 -0700 |
commit | 7c2d63074deda60c524bd42a3aa6fa2e796e4d50 (patch) | |
tree | 7d9c0c867e2eeda8b85cc396ac1b5c018dfc2081 /crawl-ref/source/makefile | |
parent | c1182b90c599bfeff5a732dcf1a849e389c34af9 (diff) | |
download | crawl-ref-7c2d63074deda60c524bd42a3aa6fa2e796e4d50.tar.gz crawl-ref-7c2d63074deda60c524bd42a3aa6fa2e796e4d50.zip |
makefile: don't rebuild the makefile.dep with clean or distclean targets
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/makefile')
-rw-r--r-- | crawl-ref/source/makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile index 8f3431c519..db20c27845 100644 --- a/crawl-ref/source/makefile +++ b/crawl-ref/source/makefile @@ -519,7 +519,11 @@ depend: $(DEPENDENCY_MKF) $(QUIET_DEPEND)fastdep $(DEFINES) $(INCLUDES) *.h $(OBJECTS:.o=.cc) > $@ endif +ifneq ($(MAKECMDGOALS),clean) +ifneq ($(MAKECMDGOALS),distclean) -include $(DEPENDENCY_MKF) +endif +endif ########################################################################## # The level compiler |