summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@lshift.net>2010-01-29 16:58:20 +0000
committerMatthew Sackman <matthew@lshift.net>2010-01-29 16:58:20 +0000
commitb22d7975219f1260b22431950ce1206aab2fdba0 (patch)
tree9864a3605d521687a69602c46a2b9cd307de150e
parent226bccfaae1ac7c2d94ec8dc00812138565c502b (diff)
downloadrabbitmq-server-git-b22d7975219f1260b22431950ce1206aab2fdba0.tar.gz
If the only target is clean, don't include the deps file. Also the deps file gets built automatically if we need to include it, so all doesn't need to depend on it, and using is neater
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f75dd0abf6..9ebb67dd09 100644
--- a/Makefile
+++ b/Makefile
@@ -58,10 +58,10 @@ ERL_CALL=erl_call -sname $(RABBITMQ_NODENAME) -e
ERL_EBIN=erl -noinput -pa $(EBIN_DIR)
-all: $(DEPS_FILE) $(TARGETS)
+all: $(TARGETS)
$(DEPS_FILE): $(SOURCES) $(INCLUDES)
- escript generate_deps $(INCLUDE_DIR) $(SOURCE_DIR) \$$\(EBIN_DIR\) $(DEPS_FILE)
+ escript generate_deps $(INCLUDE_DIR) $(SOURCE_DIR) \$$\(EBIN_DIR\) $@
$(EBIN_DIR)/rabbit.app: $(EBIN_DIR)/rabbit_app.in $(BEAM_TARGETS) generate_app
escript generate_app $(EBIN_DIR) $@ < $<
@@ -224,4 +224,6 @@ install_dirs:
mkdir -p $(SBIN_DIR)
mkdir -p $(TARGET_DIR)/sbin
+ifneq ($(MAKECMDGOALS),clean)
-include $(DEPS_FILE)
+endif