diff options
author | Jonathan Pryor <jpryor@novell.com> | 2008-10-17 23:01:35 +0400 |
---|---|---|
committer | Jonathan Pryor <jpryor@novell.com> | 2008-10-17 23:01:35 +0400 |
commit | f2fc15c09249c5fb93f98c5010dbc56a91dc8afb (patch) | |
tree | f1cc836d9cfb50018d6481018f7d94805bdcbdd3 /mcs/docs | |
parent | 1a988ae12a6ef6926eac2e59f7d8c4de9810c426 (diff) |
* docs/Makefile: Add install/uninstall support.
svn path=/trunk/mcs/; revision=116291
Diffstat (limited to 'mcs/docs')
-rw-r--r-- | mcs/docs/Makefile | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/mcs/docs/Makefile b/mcs/docs/Makefile index 45c2106e480..1a3ed440ac8 100644 --- a/mcs/docs/Makefile +++ b/mcs/docs/Makefile @@ -7,17 +7,21 @@ DISTFILES = \ compiler.txt \ control-flow-analysis.txt \ cs-errors.config \ + mono-tools.config \ + monodoc.xml \ + new-anonymous-design.txt \ + order.txt \ + $(DOC_SOURCE_FILES) \ + $(shell find ecma334 -name \*.xml) + +DOC_SOURCE_FILES = \ cs-errors.source \ ecma334.source \ - mono-tools.config \ mono-tools.source \ Mono.source \ netdocs.source \ - new-anonymous-design.txt \ Novell.source \ - nunit-docs.source \ - order.txt \ - $(shell find ecma334 -name \*.xml) + nunit-docs.source ASSEMBLED_DOCS = \ cs-errors.tree cs-errors.zip \ @@ -28,6 +32,10 @@ ASSEMBLED_DOCS = \ Novell.tree Novell.zip \ nunit-docs.tree nunit-docs.zip +MONODOC_SOURCES_INSTALL_FILES = \ + $(ASSEMBLED_DOCS) \ + $(DOC_SOURCE_FILES) + CLEAN_FILES += $(ASSEMBLED_DOCS) all-local: build-documentation @@ -39,11 +47,16 @@ clean-local: dist-local: dist-default +MONODOC_INSTALL_DIR = $(mono_libdir)/monodoc + install-local: - @: + $(MKINSTALLDIRS) $(MONODOC_INSTALL_DIR) $(MONODOC_INSTALL_DIR)/sources + $(INSTALL_DATA) $(MONODOC_SOURCES_INSTALL_FILES) $(MONODOC_INSTALL_DIR)/sources + $(INSTALL_DATA) monodoc.xml $(MONODOC_INSTALL_DIR) uninstall-local: - @: + -rm -f $(MONODOC_INSTALL_DIR)/monodoc.xml + -rm -f $(addprefix $(MONODOC_INSTALL_DIR)/sources/,$(MONODOC_SOURCES_INSTALL_FILES)) NETDOCS_DIRS = \ $(topdir)/class/corlib/Documentation/en \ |