summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2011-09-08 12:52:54 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2011-09-08 12:52:54 +0100
commit81e21b46b5a03c5be6efabe8d5fb275604ccb6b9 (patch)
tree0406d48f901b2758354d3fcca0d70bb389d0f4c5 /Makefile
parent145e8a18a6f0414b91bf285ee940ba60ee1a9e51 (diff)
downloadrabbitmq-server-git-81e21b46b5a03c5be6efabe8d5fb275604ccb6b9.tar.gz
add target to build plugins and put the .ezs in provided_plugins/
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0e4b8e9884..120f5eae6e 100644
--- a/Makefile
+++ b/Makefile
@@ -102,6 +102,11 @@ endif
all: $(TARGETS)
+plugins:
+ [ -d "plugins-src" ] || echo No plugins source distribution found
+ mkdir -p provided_plugins
+ $(MAKE) -C plugins-src plugins-dist PLUGINS_DIST_DIR=$(CURDIR)/provided_plugins VERSION=$(VERSION)
+
$(DEPS_FILE): $(SOURCES) $(INCLUDES)
rm -f $@
echo $(subst : ,:,$(foreach FILE,$^,$(FILE):)) | escript generate_deps $@ $(EBIN_DIR)
@@ -238,7 +243,7 @@ srcdist: distclean
cp -r $(DOCS_DIR) $(TARGET_SRC_DIR)
chmod 0755 $(TARGET_SRC_DIR)/scripts/*
- [ "x" != "x$(PLUGINS_SRC_DIR)" ] && ln -s $(PLUGINS_SRC_DIR) $(TARGET_SRC_DIR)/provided_plugins || echo No plugins source distribution found
+ [ "x" != "x$(PLUGINS_SRC_DIR)" ] && ln -s $(PLUGINS_SRC_DIR) $(TARGET_SRC_DIR)/plugins-src || 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))