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
commitedec4ef88293af59612aacc8fc5a8d91d616027b (patch)
tree9864a3605d521687a69602c46a2b9cd307de150e
parentc48aec6cfdcdbf0c61182d442ea6c064e75e81d7 (diff)
downloadrabbitmq-server-edec4ef88293af59612aacc8fc5a8d91d616027b.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 f75dd0ab..9ebb67dd 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