summaryrefslogtreecommitdiffstats
path: root/clang/docs/tools
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-05-01 23:11:42 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-05-01 23:11:42 +0000
commitc52d01f8d9d7efc18c52532810e65a24ee9947e9 (patch)
tree9b041f2ea1b9fd9b123ce163de81db5e646c0619 /clang/docs/tools
parentaa10d656b537eb577134b64b8bd8ba41355099ab (diff)
downloadbcm5719-llvm-c52d01f8d9d7efc18c52532810e65a24ee9947e9.tar.gz
bcm5719-llvm-c52d01f8d9d7efc18c52532810e65a24ee9947e9.zip
Add ONLY_MAN_DOCS variable to only install the man page, not the html
and ps documentation. llvm-svn: 70589
Diffstat (limited to 'clang/docs/tools')
-rw-r--r--clang/docs/tools/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/clang/docs/tools/Makefile b/clang/docs/tools/Makefile
index f00af25f6ec..da99a1dfdf7 100644
--- a/clang/docs/tools/Makefile
+++ b/clang/docs/tools/Makefile
@@ -52,6 +52,12 @@ HTML := $(patsubst $(SRC_DOC_DIR)%.pod, $(DST_HTML_DIR)%.html, $(POD))
MAN := $(patsubst $(SRC_DOC_DIR)%.pod, $(DST_MAN_DIR)%.1, $(POD))
PS := $(patsubst $(SRC_DOC_DIR)%.pod, $(DST_PS_DIR)%.ps, $(POD))
+ifdef ONLY_MAN_DOCS
+INSTALL_TARGETS := install-man
+else
+INSTALL_TARGETS := install-html install-man install-ps
+endif
+
.SUFFIXES:
.SUFFIXES: .html .pod .1 .ps
@@ -79,18 +85,24 @@ HTML_DIR := $(PROJ_docsdir)/html/clang
MAN_DIR := $(PROJ_mandir)/man1
PS_DIR := $(PROJ_docsdir)/ps
-install-local:: $(HTML) $(MAN) $(PS)
+install-html::
$(Echo) Installing HTML Clang Tools Documentation
$(Verb) $(MKDIR) $(HTML_DIR)
$(Verb) $(DataInstall) $(HTML) $(HTML_DIR)
$(Verb) $(DataInstall) $(PROJ_SRC_DIR)/manpage.css $(HTML_DIR)
+
+install-man::
$(Echo) Installing MAN Clang Tools Documentation
$(Verb) $(MKDIR) $(MAN_DIR)
$(Verb) $(DataInstall) $(MAN) $(MAN_DIR)
+
+install-ps::
$(Echo) Installing PS Clang Tools Documentation
$(Verb) $(MKDIR) $(PS_DIR)
$(Verb) $(DataInstall) $(PS) $(PS_DIR)
+install-local:: $(INSTALL_TARGETS)
+
uninstall-local::
$(Echo) Uninstalling Clang Tools Documentation
$(Verb) $(RM) -rf $(HTML_DIR) $(MAN_DIR) $(PS_DIR)
OpenPOWER on IntegriCloud