diff options
| author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-09-08 14:16:32 +0100 |
|---|---|---|
| committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-09-08 14:16:32 +0100 |
| commit | 8113a819f08f99ece57e033603941b56ee43ab23 (patch) | |
| tree | 53dfbcfdeee42875ddaeea753a9ddf5778f436b0 /Makefile | |
| parent | f2ac67c88d06dec3ce18eb1a9777ea37eb3334d0 (diff) | |
| download | rabbitmq-server-git-8113a819f08f99ece57e033603941b56ee43ab23.tar.gz | |
add plugins to generic unix archive
Since we don't want to build the entire public-umbrella several times when
building the broker artifacts (once for each of generic-unix, windows, deb and
rpm), we make the location of the built plugins configurable in the broker's
Makefile. I.e. the broker will normally install the plugins from
provided_plugins/ (build by make plugin), but, if PLUGIN_DIST_DIR is set, it
will install the plugins from there. This applies only to the install target.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -58,6 +58,7 @@ ERLC_OPTS=-I $(INCLUDE_DIR) -o $(EBIN_DIR) -Wall -v +debug_info $(call boolean_m VERSION=0.0.0 PLUGINS_SRC_DIR= +PLUGINS_DIST_DIR=provided_plugins TARBALL_NAME=rabbitmq-server-$(VERSION) TARGET_SRC_DIR=dist/$(TARBALL_NAME) @@ -102,9 +103,10 @@ endif all: $(TARGETS) +.PHONY: plugins plugins: - [ -d "plugins-src" ] || echo No plugins source distribution found - ln -s .. plugins-src/rabbitmq-server + [ -d "plugins-src" ] || { echo No plugins source distribution found; false; } + ln -sf .. plugins-src/rabbitmq-server mkdir -p provided_plugins $(MAKE) -C plugins-src plugins-dist PLUGINS_DIST_DIR=$(CURDIR)/provided_plugins VERSION=$(VERSION) @@ -299,6 +301,8 @@ install_bin: all install_dirs done mkdir -p $(TARGET_DIR)/plugins echo Put your .ez plugin files in this directory. > $(TARGET_DIR)/plugins/README + mkdir -p $(TARGET_DIR)/provided_plugins + -cp $(PLUGINS_DIST_DIR)/*.ez $(TARGET_DIR)/provided_plugins install_docs: docs_all install_dirs for section in 1 5; do \ |
