[cfe-commits] r70589 - in /cfe/trunk/docs: Makefile tools/Makefile
Daniel Dunbar
daniel at zuster.org
Fri May 1 16:11:42 PDT 2009
Author: ddunbar
Date: Fri May 1 18:11:42 2009
New Revision: 70589
URL: http://llvm.org/viewvc/llvm-project?rev=70589&view=rev
Log:
Add ONLY_MAN_DOCS variable to only install the man page, not the html
and ps documentation.
Modified:
cfe/trunk/docs/Makefile
cfe/trunk/docs/tools/Makefile
Modified: cfe/trunk/docs/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/Makefile?rev=70589&r1=70588&r2=70589&view=diff
==============================================================================
--- cfe/trunk/docs/Makefile (original)
+++ cfe/trunk/docs/Makefile Fri May 1 18:11:42 2009
@@ -33,7 +33,10 @@
.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
Modified: cfe/trunk/docs/tools/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/tools/Makefile?rev=70589&r1=70588&r2=70589&view=diff
==============================================================================
--- cfe/trunk/docs/tools/Makefile (original)
+++ cfe/trunk/docs/tools/Makefile Fri May 1 18:11:42 2009
@@ -52,6 +52,12 @@
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 @@
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)
More information about the cfe-commits
mailing list