summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Garnock-Jones <tonygarnockjones@gmail.com>2010-03-23 08:17:51 -0700
committerTony Garnock-Jones <tonygarnockjones@gmail.com>2010-03-23 08:17:51 -0700
commitb2de145777065528fa258cef162f44ae29d54d33 (patch)
tree936f1abe9be2d68011510a636e9dff59f4636b4d
parent71f7e5bdc4938874a30927f06340a682e89761aa (diff)
parent5418774c028b840f4d289a12add864f26e32b5b0 (diff)
downloadrabbitmq-server-git-b2de145777065528fa258cef162f44ae29d54d33.tar.gz
Merge bug22457 into default
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 93c69e7f41..c93d8085d3 100644
--- a/Makefile
+++ b/Makefile
@@ -246,4 +246,20 @@ install_dirs:
mkdir -p $(SBIN_DIR)
mkdir -p $(TARGET_DIR)/sbin
+# Note that all targets which depend on clean must have clean in their
+# name. Also any target that doesn't depend on clean should not have
+# clean in its name, unless you know that you don't need any of the
+# automatic dependency generation for that target (eg cleandb).
+
+# We want to load the dep file if *any* target *doesn't* contain
+# "clean" - i.e. if removing all clean-like targets leaves something
+
+ifeq "$(MAKECMDGOALS)" ""
+TESTABLEGOALS:=$(.DEFAULT_GOAL)
+else
+TESTABLEGOALS:=$(MAKECMDGOALS)
+endif
+
+ifneq "$(strip $(patsubst clean%,,$(patsubst %clean,,$(TESTABLEGOALS))))" ""
-include $(DEPS_FILE)
+endif