summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2010-06-10 13:39:55 +0100
committerMatthew Sackman <matthew@rabbitmq.com>2010-06-10 13:39:55 +0100
commit27d7ca35ac9bdbb3061b20dad1740999365d3ead (patch)
tree74c45ab85c939a4386e623c5640a78f2939e826b
parenta725bc86798911607409f230b3fdbb7c88663b53 (diff)
downloadrabbitmq-server-27d7ca35ac9bdbb3061b20dad1740999365d3ead.tar.gz
Avoid very strange weird side effecting dependency thingy
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 667a64af..9e531fd7 100644
--- a/Makefile
+++ b/Makefile
@@ -70,6 +70,12 @@ define usage_dep
$(call usage_xml_to_erl, $(1)): $(1) $(DOCS_DIR)/usage.xsl
endef
+ifneq "$(SBIN_DIR)" ""
+ifneq "$(TARGET_DIR)" ""
+SCRIPTS_REL_PATH=$(shell ./calculate-relative $(TARGET_DIR)/sbin $(SBIN_DIR))
+endif
+endif
+
all: $(TARGETS)
$(DEPS_FILE): $(SOURCES) $(INCLUDES)
@@ -234,7 +240,6 @@ $(SOURCE_DIR)/%_usage.erl:
docs_all: $(MANPAGES) $(WEB_MANPAGES)
-install: SCRIPTS_REL_PATH=$(shell ./calculate-relative $(TARGET_DIR)/sbin $(SBIN_DIR))
install: all docs_all install_dirs
cp -r ebin include LICENSE LICENSE-MPL-RabbitMQ INSTALL $(TARGET_DIR)