2009-12-07 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / docs / Makefile
index 0af94c856ca6889c49a2cf90bee5d8f8c2888222..8c2d76b98109d04a410522387e8b44210985388c 100644 (file)
@@ -17,8 +17,7 @@ DOC_SOURCE_FILES = \
        lang-csharp.source          \
        Mono.source                 \
        netdocs.source              \
-       Novell.source               \
-       nunit-docs.source
+       Novell.source
 
 ASSEMBLED_DOCS = \
        cs-errors.tree cs-errors.zip      \
@@ -37,15 +36,22 @@ ifeq (net_2_0, $(PROFILE))
 all-local: build-documentation
 endif
 
-all-local test-local run-test-local run-test-ondotnet-local doc-update:
+all-local csproj-local test-local run-test-local run-test-ondotnet-local doc-update:
 
 clean-local:
-       -rm $(CLEAN_FILES)
+       -rm -f $(CLEAN_FILES)
 
 dist-local: dist-default
 
+
 MONODOC_INSTALL_DIR = $(DESTDIR)$(mono_libdir)/monodoc
 
+ifdef DISABLE_MCS_DOCS
+install-local:
+
+uninstall-local:
+
+else
 install-local:
        $(MKINSTALLDIRS) $(MONODOC_INSTALL_DIR) $(MONODOC_INSTALL_DIR)/sources
        $(INSTALL_DATA) $(MONODOC_SOURCES_INSTALL_FILES) $(MONODOC_INSTALL_DIR)/sources
@@ -54,6 +60,9 @@ install-local:
 uninstall-local:
        -rm -f $(MONODOC_INSTALL_DIR)/monodoc.xml
        -rm -f $(addprefix $(MONODOC_INSTALL_DIR)/sources/,$(MONODOC_SOURCES_INSTALL_FILES))
+endif
+
+
 
 classdir = $(topdir)/class
 doc_en   = Documentation/en
@@ -87,8 +96,8 @@ MONO_DIRS = \
        $(classdir)/Mono.Security.Win32/$(doc_en)          \
        $(classdir)/Mono.Security/$(doc_en)                \
        $(classdir)/Mono.Simd/$(doc_en)                    \
-       $(classdir)/Npgsql/$(doc_en)                       \
-       $(topdir)/tools/csharplib/en
+       $(classdir)/Mono.CSharp/$(doc_en)                  \
+       $(classdir)/Npgsql/$(doc_en)                       
 
 NOVELL_DIRS = \
        $(topdir)/class/Novell.Directory.Ldap/Documentation/en
@@ -99,7 +108,11 @@ NUNIT_DIRS = \
        $(topdir)/nunit20/mocks/$(doc_en)      \
        $(topdir)/nunit20/util/$(doc_en)
 
+ifdef DISABLE_MCS_DOCS
+build-documentation:
+else
 build-documentation: $(ASSEMBLED_DOCS)
+endif
 
 # To support `make -jN`, we can't mention multiple targets in the same rule;
 # DO NOT DO THIS:
@@ -125,10 +138,6 @@ Novell.zip : Novell.tree
 Novell.tree: Makefile
        $(MDOC) assemble -o Novell $(NOVELL_DIRS)
 
-nunit-docs.zip : nunit-docs.tree
-nunit-docs.tree: Makefile
-       $(MDOC) assemble -o nunit-docs $(NUNIT_DIRS)
-
 cs-errors.zip : cs-errors.tree
 cs-errors.tree: cs-errors.config Makefile
        $(MDOC) assemble -o cs-errors -f error $<