summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@lshift.net>2010-04-01 12:26:00 +0100
committerMatthew Sackman <matthew@lshift.net>2010-04-01 12:26:00 +0100
commit5650efa3fec2dd8abcfe7345c8a962adf0621efd (patch)
treed29c0a8ea735d6a13a4a0dd0d06e17b46a36aa80
parent7c691d118046c391dd03da7400aac4b371aa7b97 (diff)
downloadrabbitmq-server-git-5650efa3fec2dd8abcfe7345c8a962adf0621efd.tar.gz
1. If our entire goalset is to make the deps file, don't include it; 2. We don't want the error msg when including the deps file when it doesn't exist, but at the same time we do want all errors if they occur when generating the deps. Hence -include is not permitted. Thus if we need the deps file then make it explicitly before including it.
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5c7089d440..3cf53e7084 100644
--- a/Makefile
+++ b/Makefile
@@ -271,6 +271,11 @@ else
TESTABLEGOALS:=$(MAKECMDGOALS)
endif
+ifneq "$(strip $(TESTABLEGOALS))" "$(DEPS_FILE)"
ifneq "$(strip $(patsubst clean%,,$(patsubst %clean,,$(TESTABLEGOALS))))" ""
+ifeq "$(strip $(wildcard $(DEPS_FILE)))" ""
+_:=$(shell $(MAKE) $(DEPS_FILE))
+endif
include $(DEPS_FILE)
endif
+endif