summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@lshift.net>2010-03-23 11:23:55 +0000
committerMatthew Sackman <matthew@lshift.net>2010-03-23 11:23:55 +0000
commit5418774c028b840f4d289a12add864f26e32b5b0 (patch)
tree4d29ce69ab97cf005a6966d84c8d19e89885bc6d
parent41be81600ddb1433199fee4344cd61ddc9cae1b6 (diff)
downloadrabbitmq-server-git-5418774c028b840f4d289a12add864f26e32b5b0.tar.gz
Correct logic so that a 'make' with no explicit goals still behaves correctly
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e308f0f181..25421f1e34 100644
--- a/Makefile
+++ b/Makefile
@@ -253,6 +253,13 @@ install_dirs:
# We want to load the dep file if *any* target *doesn't* contain
# "clean" - i.e. if removing all clean-like targets leaves something
-ifneq "$(strip $(patsubst clean%,,$(patsubst %clean,,$(MAKECMDGOALS))))" ""
+
+ifeq "$(MAKECMDGOALS)" ""
+TESTABLEGOALS:=$(.DEFAULT_GOAL)
+else
+TESTABLEGOALS:=$(MAKECMDGOALS)
+endif
+
+ifneq "$(strip $(patsubst clean%,,$(patsubst %clean,,$(TESTABLEGOALS))))" ""
-include $(DEPS_FILE)
endif