summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJean-Sebastien Pedron <jean-sebastien@rabbitmq.com>2015-02-03 14:32:06 +0100
committerJean-Sebastien Pedron <jean-sebastien@rabbitmq.com>2015-02-03 14:32:06 +0100
commit2a38e52b08b9595736d14380b2f189d68fb20c6e (patch)
tree865452dc10e2d23ea4579b29b2dda07a9aa6d3d8 /Makefile
parentf0681f34782b3ef800759a5bd1536e2acb154ef6 (diff)
downloadrabbitmq-server-git-2a38e52b08b9595736d14380b2f189d68fb20c6e.tar.gz
Don't install rabbitmq.config.example is DOC_INSTALL_DIR is unset
This reverts commit d795910d2127.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index c955a8fcfb..50c6c76bd8 100644
--- a/Makefile
+++ b/Makefile
@@ -366,19 +366,22 @@ install_docs: docs_all install_dirs
cp $$manpage $(MAN_DIR)/man$$section; \
done; \
done
- cp $(DOCS_DIR)/rabbitmq.config.example $(DOC_INSTALL_DIR)/rabbitmq.config.example
+ if test "$(DOC_INSTALL_DIR)"; then \
+ cp $(DOCS_DIR)/rabbitmq.config.example $(DOC_INSTALL_DIR)/rabbitmq.config.example; \
+ fi
install_dirs:
@ OK=true && \
{ [ -n "$(TARGET_DIR)" ] || { echo "Please set TARGET_DIR."; OK=false; }; } && \
{ [ -n "$(SBIN_DIR)" ] || { echo "Please set SBIN_DIR."; OK=false; }; } && \
- { [ -n "$(MAN_DIR)" ] || { echo "Please set MAN_DIR."; OK=false; }; } && \
- { [ -n "$(DOC_INSTALL_DIR)" ] || { echo "Please set DOC_INSTALL_DIR."; OK=false; }; } && $$OK
+ { [ -n "$(MAN_DIR)" ] || { echo "Please set MAN_DIR."; OK=false; }; } && $$OK
mkdir -p $(TARGET_DIR)/sbin
mkdir -p $(SBIN_DIR)
mkdir -p $(MAN_DIR)
- mkdir -p $(DOC_INSTALL_DIR)
+ if test "$(DOC_INSTALL_DIR)"; then \
+ mkdir -p $(DOC_INSTALL_DIR); \
+ fi
$(foreach XML,$(USAGES_XML),$(eval $(call usage_dep, $(XML))))