* docs/Makefile (DISTFILES): Don't use 'find' to list files.
[mono.git] / mcs / docs / Makefile
1 thisdir = docs
2 SUBDIRS = 
3 include ../build/rules.make
4
5 DISTFILES = \
6         clr-abi.txt                 \
7         compiler.txt                \
8         control-flow-analysis.txt   \
9         cs-errors.config            \
10         mono-tools.config           \
11         monodoc.xml                 \
12         new-anonymous-design.txt    \
13         order.txt                   \
14         $(DOC_SOURCE_FILES)         \
15         $(wildcard ecma334/*.xml)
16
17 DOC_SOURCE_FILES = \
18         cs-errors.source            \
19         ecma334.source              \
20         mono-tools.source           \
21         Mono.source                 \
22         netdocs.source              \
23         Novell.source               \
24         nunit-docs.source
25
26 ASSEMBLED_DOCS = \
27         cs-errors.tree cs-errors.zip      \
28         ecma334.tree ecma334.zip          \
29         mono-tools.tree mono-tools.zip    \
30         Mono.tree Mono.zip                \
31         netdocs.tree netdocs.zip          \
32         Novell.tree Novell.zip            \
33         nunit-docs.tree nunit-docs.zip
34
35 MONODOC_SOURCES_INSTALL_FILES = \
36         $(ASSEMBLED_DOCS)             \
37         $(DOC_SOURCE_FILES)
38
39 CLEAN_FILES += $(ASSEMBLED_DOCS)
40
41 ifeq (net_2_0, $(PROFILE))
42 all-local: build-documentation
43 endif
44
45 all-local test-local run-test-local run-test-ondotnet-local doc-update:
46
47 clean-local:
48         -rm $(CLEAN_FILES)
49
50 dist-local: dist-default
51
52 MONODOC_INSTALL_DIR = $(mono_libdir)/monodoc
53
54 install-local:
55         $(MKINSTALLDIRS) $(MONODOC_INSTALL_DIR) $(MONODOC_INSTALL_DIR)/sources
56         $(INSTALL_DATA) $(MONODOC_SOURCES_INSTALL_FILES) $(MONODOC_INSTALL_DIR)/sources
57         $(INSTALL_DATA) monodoc.xml $(MONODOC_INSTALL_DIR)
58
59 uninstall-local:
60         -rm -f $(MONODOC_INSTALL_DIR)/monodoc.xml
61         -rm -f $(addprefix $(MONODOC_INSTALL_DIR)/sources/,$(MONODOC_SOURCES_INSTALL_FILES))
62
63 NETDOCS_DIRS = \
64         $(topdir)/class/corlib/Documentation/en                       \
65         $(topdir)/class/System/Documentation/en                       \
66         $(topdir)/class/System.Core/Documentation/en                  \
67         $(topdir)/class/System.XML/Documentation/en                   \
68         $(topdir)/class/System.Web/Documentation/en                   \
69         $(topdir)/class/System.Web.Services/Documentation/en          \
70         $(topdir)/class/System.Data/Documentation/en                  \
71         $(topdir)/class/System.DirectoryServices/Documentation/en     \
72         $(topdir)/class/System.Drawing/Documentation/en               \
73         $(topdir)/class/System.Security/Documentation/en              \
74         $(topdir)/class/Microsoft.Build.Framework/Documentation/en    \
75         $(topdir)/class/Microsoft.Build.Engine/Documentation/en       \
76         $(topdir)/class/Microsoft.Build.Utilities/Documentation/en
77
78 MONO_DIRS = \
79         $(topdir)/class/Commons.Xml.Relaxng/Documentation/en          \
80         $(topdir)/class/Mono.Cairo/Documentation/en                   \
81         $(topdir)/class/Mono.GetOptions/Documentation/en              \
82         $(topdir)/class/Mono.Options/Documentation/en                 \
83         $(topdir)/class/Mono.Posix/Documentation/en                   \
84         $(topdir)/class/Mono.Security.Win32/Documentation/en          \
85         $(topdir)/class/Mono.Security/Documentation/en
86
87 NOVELL_DIRS = \
88         $(topdir)/class/Novell.Directory.Ldap/Documentation/en
89
90 NUNIT_DIRS = \
91         $(topdir)/nunit20/core/Documentation/en       \
92         $(topdir)/nunit20/framework/Documentation/en  \
93         $(topdir)/nunit20/mocks/Documentation/en      \
94         $(topdir)/nunit20/util/Documentation/en
95
96 build-documentation: $(ASSEMBLED_DOCS)
97
98 netdocs.tree netdocs.zip:
99         $(MDOC) assemble -o netdocs $(NETDOCS_DIRS)
100
101 Mono.tree Mono.zip:
102         $(MDOC) assemble -o Mono $(MONO_DIRS)
103
104 Novell.tree Novell.zip:
105         $(MDOC) assemble -o Novell $(NOVELL_DIRS)
106
107 nunit-docs.tree nunit-docs.zip:
108         $(MDOC) assemble -o nunit-docs $(NUNIT_DIRS)
109
110 cs-errors.tree cs-errors.zip:
111         $(MDOC) assemble -o cs-errors -f error cs-errors.config
112
113 ecma334.tree ecma334.zip:
114         $(MDOC) assemble -o ecma334 -f ecmaspec ecma334
115
116 mono-tools.tree mono-tools.zip: mono-tools.config
117         $(MDOC) assemble -o mono-tools -f man mono-tools.config
118