summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2015-08-13 11:08:27 +0200
committerJean-Sébastien Pédron <jean-sebastien.pedron@dumbbell.fr>2015-10-20 11:10:48 +0200
commit0e173fd162450c815af168da388675bc1c14e118 (patch)
treee23f2f09c2cf0588de7a274d7fe5d7bf8ac0203b
parent387d304df8b0122f160f1374f32e244c47efe279 (diff)
downloadrabbitmq-server-git-0e173fd162450c815af168da388675bc1c14e118.tar.gz
Makefile: Compile behaviors first
Also, use Erlang atoms when naming dependencies.
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 078095befc..12ccd81127 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
PROJECT = rabbit
-DEPS = rabbitmq-common
-dep_rabbitmq-common= git file:///home/dumbbell/Projects/pivotal/other-repos/rabbitmq-common master
+DEPS = rabbitmq_common
+dep_rabbitmq_common= git file:///home/dumbbell/Projects/pivotal/other-repos/rabbitmq-common master
.DEFAULT_GOAL = all
@@ -69,7 +69,11 @@ clean:: clean-generated
clean-generated:
$(gen_verbose) rm -f $(USAGES_ERL)
-ERLC_OPTS += -I $(DEPS_DIR)/rabbitmq-common/include
+COMPILE_FIRST = $(basename \
+ $(notdir \
+ $(shell grep -lw '^behaviour_info' src/*.erl)))
+
+ERLC_OPTS += -I $(DEPS_DIR)/rabbitmq_common/include
ifdef INSTRUMENT_FOR_QC
ERLC_OPTS += -DINSTR_MOD=gm_qc