summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTim Watson <tim@rabbitmq.com>2013-09-13 10:27:54 +0100
committerTim Watson <tim@rabbitmq.com>2013-09-13 10:27:54 +0100
commitae9aa71e5e4a983613be7e19512fd3f819cfb637 (patch)
tree79f77f629f9f29ad30011f2c204198bcb85476aa /Makefile
parent8bfdeab80a25f047da7108d9318aaee1c237cac4 (diff)
downloadrabbitmq-server-ae9aa71e5e4a983613be7e19512fd3f819cfb637.tar.gz
tweak handling of the doc install dir
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e8c4b4cb..f294ca7a 100644
--- a/Makefile
+++ b/Makefile
@@ -341,7 +341,7 @@ install_docs: docs_all install_dirs
cp $$manpage $(MAN_DIR)/man$$section; \
done; \
done
- cp $(DOCS_DIR)/rabbitmq.sample.config $(DOC_INSTALL_DIR)/rabbitmq.sample.config
+ $(ifneq $(DOC_INSTALL_DIR),,$(shell cp $(DOCS_DIR)/rabbitmq.sample.config $(DOC_INSTALL_DIR)/rabbitmq.sample.config))
install_dirs:
@ OK=true && \
@@ -352,7 +352,7 @@ install_dirs:
mkdir -p $(TARGET_DIR)/sbin
mkdir -p $(SBIN_DIR)
mkdir -p $(MAN_DIR)
- mkdir -p $(DOC_INSTALL_DIR)
+ $(ifneq $(DOC_INSTALL_DIR),,$(shell mkdir -p $(DOC_INSTALL_DIR)))
$(foreach XML,$(USAGES_XML),$(eval $(call usage_dep, $(XML))))