summaryrefslogtreecommitdiff
path: root/Makefile
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
commitfde8a552d689c78ac3ec3d57a5f4835b3f059249 (patch)
tree74c45ab85c939a4386e623c5640a78f2939e826b /Makefile
parent091127c82093fa418c55ada8c5c0c244df9390a0 (diff)
downloadrabbitmq-server-git-fde8a552d689c78ac3ec3d57a5f4835b3f059249.tar.gz
Avoid very strange weird side effecting dependency thingy
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 667a64af41..9e531fd76b 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)