summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEmile Joubert <emile@rabbitmq.com>2013-07-31 13:06:16 +0100
committerEmile Joubert <emile@rabbitmq.com>2013-07-31 13:06:16 +0100
commit2dde2df7e97ceadabba80ac8b993b23b0db5e5d3 (patch)
tree97db40e02fbc1aa2043d545da2dda08e046e7096 /Makefile
parent2af61b7e9bb98204fcec6745082e0aaeb50342f6 (diff)
parentba092e1e82fbb26e6f7da5153fdbbd66ae6b72e3 (diff)
downloadrabbitmq-server-git-2dde2df7e97ceadabba80ac8b993b23b0db5e5d3.tar.gz
Refresh branch from stable
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9a6ad7a6f0..56d4b3c05c 100644
--- a/Makefile
+++ b/Makefile
@@ -56,7 +56,8 @@ endif
#other args: +native +"{hipe,[o3,verbose]}" -Ddebug=true +debug_info +no_strict_record_tests
ERLC_OPTS=-I $(INCLUDE_DIR) -o $(EBIN_DIR) -Wall -v +debug_info $(call boolean_macro,$(USE_SPECS),use_specs) $(call boolean_macro,$(USE_PROPER_QC),use_proper_qc)
-VERSION?=0.0.0
+include version.mk
+
PLUGINS_SRC_DIR?=$(shell [ -d "plugins-src" ] && echo "plugins-src" || echo )
PLUGINS_DIR=plugins
TARBALL_NAME=rabbitmq-server-$(VERSION)
@@ -262,6 +263,8 @@ srcdist: distclean
cp -r $(AMQP_CODEGEN_DIR)/* $(TARGET_SRC_DIR)/codegen/
cp codegen.py Makefile generate_app generate_deps calculate-relative $(TARGET_SRC_DIR)
+ echo "VERSION?=${VERSION}" > $(TARGET_SRC_DIR)/version.mk
+
cp -r scripts $(TARGET_SRC_DIR)
cp -r $(DOCS_DIR) $(TARGET_SRC_DIR)
chmod 0755 $(TARGET_SRC_DIR)/scripts/*