summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2011-09-08 12:22:41 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2011-09-08 12:22:41 +0100
commit8eb63f8f0812f80b547e3164d8abbac4ff6850e8 (patch)
tree3e422ef112f03cf2d7b34482b5f7fa49d5433aa5 /Makefile
parentbe4c3e380f6298756f3275b44fee08ef012d81f6 (diff)
downloadrabbitmq-server-8eb63f8f0812f80b547e3164d8abbac4ff6850e8.tar.gz
include the plugins' sources in the broker bundles
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ee2700af..0e4b8e98 100644
--- a/Makefile
+++ b/Makefile
@@ -57,6 +57,7 @@ endif
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
+PLUGINS_SRC_DIR=
TARBALL_NAME=rabbitmq-server-$(VERSION)
TARGET_SRC_DIR=dist/$(TARBALL_NAME)
@@ -237,7 +238,9 @@ srcdist: distclean
cp -r $(DOCS_DIR) $(TARGET_SRC_DIR)
chmod 0755 $(TARGET_SRC_DIR)/scripts/*
- (cd dist; tar -zcf $(TARBALL_NAME).tar.gz $(TARBALL_NAME))
+ [ "x" != "x$(PLUGINS_SRC_DIR)" ] && ln -s $(PLUGINS_SRC_DIR) $(TARGET_SRC_DIR)/provided_plugins || echo No plugins source distribution found
+
+ (cd dist; tar -zchf $(TARBALL_NAME).tar.gz $(TARBALL_NAME))
(cd dist; zip -q -r $(TARBALL_NAME).zip $(TARBALL_NAME))
rm -rf $(TARGET_SRC_DIR)