Merge pull request #2274 from esdrubal/udpclientreceive
[mono.git] / mcs / docs / Makefile
index cf9f34e9038a5cbb2792c8aba5b50e8bb78d69cf..88bddb6626860eadb0ed7e749f781be2aaeabbe5 100644 (file)
@@ -17,16 +17,14 @@ 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      \
        ecma334.tree ecma334.zip          \
        Mono.tree Mono.zip                \
        netdocs.tree netdocs.zip          \
-       Novell.tree Novell.zip            \
-       nunit-docs.tree nunit-docs.zip
+       Novell.tree Novell.zip            
 
 MONODOC_SOURCES_INSTALL_FILES = \
        $(ASSEMBLED_DOCS)             \
@@ -34,19 +32,32 @@ MONODOC_SOURCES_INSTALL_FILES = \
 
 CLEAN_FILES += $(ASSEMBLED_DOCS)
 
-ifeq (net_2_0, $(PROFILE))
-all-local: build-documentation
+ifndef DISABLE_MCS_DOCS
+ifneq ($(PROFILE), $(DEFAULT_PROFILE))
+DISABLE_MCS_DOCS = yes
+endif
 endif
 
-all-local test-local run-test-local run-test-ondotnet-local doc-update:
+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
+all-local:
+
+install-local:
+
+uninstall-local:
+
+else
+all-local: $(ASSEMBLED_DOCS)
+
 install-local:
        $(MKINSTALLDIRS) $(MONODOC_INSTALL_DIR) $(MONODOC_INSTALL_DIR)/sources
        $(INSTALL_DATA) $(MONODOC_SOURCES_INSTALL_FILES) $(MONODOC_INSTALL_DIR)/sources
@@ -55,44 +66,59 @@ 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
 
 NETDOCS_DIRS = \
-       $(topdir)/class/corlib/Documentation/en                       \
-       $(topdir)/class/System/Documentation/en                       \
-       $(topdir)/class/System.Core/Documentation/en                  \
-       $(topdir)/class/System.XML/Documentation/en                   \
-       $(topdir)/class/System.Web/Documentation/en                   \
-       $(topdir)/class/System.Web.Services/Documentation/en          \
-       $(topdir)/class/System.Data/Documentation/en                  \
-       $(topdir)/class/System.DirectoryServices/Documentation/en     \
-       $(topdir)/class/System.Drawing/Documentation/en               \
-       $(topdir)/class/System.Security/Documentation/en              \
-       $(topdir)/class/Microsoft.Build.Framework/Documentation/en    \
-       $(topdir)/class/Microsoft.Build.Engine/Documentation/en       \
-       $(topdir)/class/Microsoft.Build.Utilities/Documentation/en
+       $(classdir)/corlib/$(doc_en)                                        \
+       $(classdir)/System.Windows.Forms/$(doc_en)                          \
+       $(classdir)/Microsoft.Build.Engine/$(doc_en)                        \
+       $(classdir)/Microsoft.Build.Framework/$(doc_en)                     \
+       $(classdir)/Microsoft.Build.Utilities/$(doc_en)                     \
+       $(classdir)/System.Configuration.Install/$(doc_en)                  \
+       $(classdir)/System.Core/$(doc_en)                                   \
+       $(classdir)/System.Data/$(doc_en)                                   \
+       $(classdir)/System.Design/$(doc_en)                                 \
+       $(classdir)/System.DirectoryServices/$(doc_en)                      \
+       $(classdir)/System.Drawing/$(doc_en)                                \
+       $(classdir)/System.Json/$(doc_en)                                   \
+       $(classdir)/System.Net.Http/$(doc_en)                               \
+       $(classdir)/System.Runtime.Remoting/$(doc_en)                       \
+       $(classdir)/System.Runtime.Serialization/$(doc_en)                  \
+       $(classdir)/System.Runtime.Serialization.Formatters.Soap/$(doc_en)  \
+       $(classdir)/System.Security/$(doc_en)                               \
+       $(classdir)/System.ServiceModel/$(doc_en)                           \
+       $(classdir)/System.Web.Services/$(doc_en)                           \
+       $(classdir)/System.Web/$(doc_en)                                    \
+       $(classdir)/System.XML/$(doc_en)                                    \
+       $(classdir)/System.Xml.Linq/$(doc_en)                               \
+       $(classdir)/System/$(doc_en) 
 
 MONO_DIRS = \
-       $(topdir)/class/Commons.Xml.Relaxng/Documentation/en          \
-       $(topdir)/class/Mono.Cairo/Documentation/en                   \
-       $(topdir)/class/Mono.Data.SqliteClient/Documentation/en       \
-       $(topdir)/class/Mono.GetOptions/Documentation/en              \
-       $(topdir)/class/Mono.Options/Documentation/en                 \
-       $(topdir)/class/Mono.Posix/Documentation/en                   \
-       $(topdir)/class/Mono.Security.Win32/Documentation/en          \
-       $(topdir)/class/Mono.Security/Documentation/en                \
-       $(topdir)/class/Mono.Simd/Documentation/en                    \
-       $(topdir)/tools/csharplib/en
+       $(classdir)/Commons.Xml.Relaxng/$(doc_en)          \
+       $(classdir)/Mono.Cairo/$(doc_en)                   \
+       $(classdir)/Mono.CSharp/$(doc_en)                  \
+       $(classdir)/Mono.Data.Sqlite/$(doc_en)             \
+       $(classdir)/Mono.Debugger.Soft/$(doc_en)           \
+       $(classdir)/Mono.Options/$(doc_en)                 \
+       $(classdir)/Mono.Parallel/$(doc_en)                \
+       $(classdir)/Mono.Posix/$(doc_en)                   \
+       $(classdir)/Mono.Security.Win32/$(doc_en)          \
+       $(classdir)/Mono.Security/$(doc_en)                \
+       $(classdir)/Mono.Simd/$(doc_en)
 
 NOVELL_DIRS = \
        $(topdir)/class/Novell.Directory.Ldap/Documentation/en
 
 NUNIT_DIRS = \
-       $(topdir)/nunit20/core/Documentation/en       \
-       $(topdir)/nunit20/framework/Documentation/en  \
-       $(topdir)/nunit20/mocks/Documentation/en      \
-       $(topdir)/nunit20/util/Documentation/en
-
-build-documentation: $(ASSEMBLED_DOCS)
+       $(topdir)/nunit20/core/$(doc_en)       \
+       $(topdir)/nunit20/framework/$(doc_en)  \
+       $(topdir)/nunit20/mocks/$(doc_en)      \
+       $(topdir)/nunit20/util/$(doc_en)
 
 # To support `make -jN`, we can't mention multiple targets in the same rule;
 # DO NOT DO THIS:
@@ -108,25 +134,21 @@ build-documentation: $(ASSEMBLED_DOCS)
 
 netdocs.zip : netdocs.tree
 netdocs.tree: Makefile
-       $(MDOC) assemble -o netdocs $(NETDOCS_DIRS)
+       $(MDOC) --debug assemble -o netdocs $(NETDOCS_DIRS)
 
 Mono.zip : Mono.tree
 Mono.tree: Makefile
-       $(MDOC) assemble -o Mono $(MONO_DIRS)
+       $(MDOC) --debug assemble -o Mono $(MONO_DIRS)
 
 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)
+       $(MDOC) --debug assemble -o Novell $(NOVELL_DIRS)
 
 cs-errors.zip : cs-errors.tree
 cs-errors.tree: cs-errors.config Makefile
-       $(MDOC) assemble -o cs-errors -f error $<
+       $(MDOC) --debug assemble -o cs-errors -f error $<
 
 ecma334.zip : ecma334.tree
 ecma334.tree: Makefile
-       $(MDOC) assemble -o ecma334 -f ecmaspec ecma334
+       $(MDOC) --debug assemble -o ecma334 -f ecmaspec ecma334