summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@lshift.net>2008-12-12 13:13:01 +0000
committerMatthias Radestock <matthias@lshift.net>2008-12-12 13:13:01 +0000
commit6bcbdd7a0005e2f47f59b50dd5dfa92f9cc4af9b (patch)
tree6eb3df59b5a4a3426494b877f5eff5daa80ec33d /Makefile
parent5e22be442f927ac2261618b35edbf3789d2328bd (diff)
downloadrabbitmq-server-git-6bcbdd7a0005e2f47f59b50dd5dfa92f9cc4af9b.tar.gz
separate out codegen targets
that way 'make -j' won't end up buidling the same targets twice
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7691962901..6b8af7b72d 100644
--- a/Makefile
+++ b/Makefile
@@ -41,9 +41,11 @@ $(EBIN_DIR)/%.beam: $(SOURCE_DIR)/%.erl $(INCLUDE_DIR)/rabbit_framing.hrl $(INCL
erlc $(ERLC_OPTS) $<
# ERLC_EMULATOR="erl -smp" erlc $(ERLC_OPTS) $<
-$(INCLUDE_DIR)/rabbit_framing.hrl $(SOURCE_DIR)/rabbit_framing.erl: codegen.py $(AMQP_CODEGEN_DIR)/amqp_codegen.py $(AMQP_SPEC_JSON_PATH)
- python codegen.py header $(AMQP_SPEC_JSON_PATH) > $(INCLUDE_DIR)/rabbit_framing.hrl
- python codegen.py body $(AMQP_SPEC_JSON_PATH) > $(SOURCE_DIR)/rabbit_framing.erl
+$(INCLUDE_DIR)/rabbit_framing.hrl: codegen.py $(AMQP_CODEGEN_DIR)/amqp_codegen.py $(AMQP_SPEC_JSON_PATH)
+ python codegen.py header $(AMQP_SPEC_JSON_PATH) > $@
+
+$(SOURCE_DIR)/rabbit_framing.erl: codegen.py $(AMQP_CODEGEN_DIR)/amqp_codegen.py $(AMQP_SPEC_JSON_PATH)
+ python codegen.py body $(AMQP_SPEC_JSON_PATH) > $@
$(EBIN_DIR)/rabbit.boot $(EBIN_DIR)/rabbit.script: $(EBIN_DIR)/rabbit.app $(EBIN_DIR)/rabbit.rel $(TARGETS)
erl -noshell -eval 'systools:make_script("ebin/rabbit", [{path, ["ebin"]}]), halt().'