diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-05-01 23:11:42 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-05-01 23:11:42 +0000 |
commit | e0a809265c3ec4eadacbeb6e040b26a153e8e21d (patch) | |
tree | a5759016e20441059f157ea1f0682f5a828ca74c /docs | |
parent | 55674acc0331f96bf9e2074e9853c9a1fa96857b (diff) |
Add ONLY_MAN_DOCS variable to only install the man page, not the html
and ps documentation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70589 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r-- | docs/Makefile | 5 | ||||
-rw-r--r-- | docs/tools/Makefile | 14 |
2 files changed, 17 insertions, 2 deletions
diff --git a/docs/Makefile b/docs/Makefile index 47db7eb998..9b706c7f36 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -33,7 +33,10 @@ EXTRA_DIST := $(HTML) $(DOXYFILES) llvm.css CommandGuide img .PHONY: install-html install-doxygen doxygen generated -install_targets := install-html +install_targets := +ifndef ONLY_MAN_DOCS +install_targets += install-html +endif ifeq ($(ENABLE_DOXYGEN),1) install_targets += install-doxygen endif diff --git a/docs/tools/Makefile b/docs/tools/Makefile index f00af25f6e..da99a1dfdf 100644 --- a/docs/tools/Makefile +++ b/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) |