summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert@lshift.net>2008-11-07 16:26:59 +0000
committerHubert Plociniczak <hubert@lshift.net>2008-11-07 16:26:59 +0000
commitf821572634cecadf3f7c73c17d132e7d9c3d42fd (patch)
tree32b5d46c15e661b2dafc648be79d283b388bc7a1 /Makefile
parentc83165eca1af82dc079085c09dc7fd7be997e317 (diff)
downloadrabbitmq-server-git-f821572634cecadf3f7c73c17d132e7d9c3d42fd.tar.gz
Do not include source files in the binary packages
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ee7bb30d09..e652c27cf3 100644
--- a/Makefile
+++ b/Makefile
@@ -94,7 +94,11 @@ stop-cover: all
generic_stage:
mkdir -p $(GENERIC_STAGE_DIR)
- cp -r ebin include src $(GENERIC_STAGE_DIR)
+ cp -r ebin include $(GENERIC_STAGE_DIR)
+ifneq "$(NO_SRC)" "true"
+ cp -r src $(GENERIC_STAGE_DIR)
+endif
+
cp LICENSE LICENSE-MPL-RabbitMQ $(GENERIC_STAGE_DIR)
if [ -f INSTALL.in ]; then \
@@ -136,7 +140,7 @@ install: all
@[ -n "$(SBIN_DIR)" ] || (echo "Please set SBIN_DIR."; false)
@[ -n "$(MAN_DIR)" ] || (echo "Please set MAN_DIR."; false)
- $(MAKE) VERSION=$(VERSION) GENERIC_STAGE_DIR=$(TARGET_DIR) generic_stage
+ $(MAKE) VERSION=$(VERSION) GENERIC_STAGE_DIR=$(TARGET_DIR) NO_SRC=true generic_stage
chmod 0755 scripts/*
mkdir -p $(SBIN_DIR)