summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2016-11-08 19:08:23 +0100
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2016-11-08 19:08:23 +0100
commitdb3515ba7855dae6fdce4e6fc622fc9e1bdda75a (patch)
tree0adb97891cbdd02b180fdebf1da33ee25bdb4946 /Makefile
parentfa8784fe7c343992cc3591b0d0353e560d252067 (diff)
parent81e2170a6c6f4d4835e7731a9d251f5eadd060ce (diff)
downloadrabbitmq-server-git-db3515ba7855dae6fdce4e6fc622fc9e1bdda75a.tar.gz
Merge branch 'rabbitmq-cli-integration'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 588b7149f7..b62bc9c116 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,11 @@
PROJECT = rabbit
VERSION ?= $(call get_app_version,src/$(PROJECT).app.src)
-DEPS = ranch lager rabbit_common
+DEPS = ranch lager rabbit_common rabbitmq_cli
TEST_DEPS = rabbitmq_ct_helpers amqp_client meck proper
+dep_rabbitmq_cli = git_rmq rabbitmq-cli $(current_rmq_ref) $(base_rmq_ref) rabbitmq-cli-integration
+
define usage_xml_to_erl
$(subst __,_,$(patsubst $(DOCS_DIR)/rabbitmq%.1.xml, src/rabbit_%_usage.erl, $(subst -,_,$(1))))
endef
@@ -19,6 +21,13 @@ EXTRA_SOURCES += $(USAGES_ERL)
.DEFAULT_GOAL = all
$(PROJECT).d:: $(EXTRA_SOURCES)
+rel::
+ $(MAKE) copy-escripts
+
+copy-escripts: deps
+ cp -r ${DEPS_DIR}/rabbitmq_cli/escript ./
+
+
DEP_PLUGINS = rabbit_common/mk/rabbitmq-build.mk \
rabbit_common/mk/rabbitmq-run.mk \
rabbit_common/mk/rabbitmq-dist.mk \
@@ -56,11 +65,14 @@ USE_PROPER_QC := $(shell $(ERL) -eval 'io:format({module, proper} =:= code:ensur
RMQ_ERLC_OPTS += $(if $(filter true,$(USE_PROPER_QC)),-Duse_proper_qc)
endif
-clean:: clean-extra-sources
+clean:: clean-extra-sources clean-escripts
clean-extra-sources:
$(gen_verbose) rm -f $(EXTRA_SOURCES)
+clean-escripts:
+ $(gen_verbose) rm -rf escript
+
# --------------------------------------------------------------------
# Documentation.
# --------------------------------------------------------------------