summaryrefslogtreecommitdiff
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
commitbf9fcf46ccb873b1e860f18333784b57cfdfaf3c (patch)
tree32b5d46c15e661b2dafc648be79d283b388bc7a1
parent78e2a8e7fdff0850e873a9f85b475a4ec36f97da (diff)
downloadrabbitmq-server-bf9fcf46ccb873b1e860f18333784b57cfdfaf3c.tar.gz
Do not include source files in the binary packages
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ee7bb30d..e652c27c 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)