* docs/Makefile: Assemble documentation.
[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         cs-errors.source            \
11         ecma334.source              \
12         mono-tools.config           \
13         mono-tools.source           \
14         Mono.source                 \
15         netdocs.source              \
16         new-anonymous-design.txt    \
17         Novell.source               \
18         nunit-docs.source           \
19         order.txt                   \
20         $(shell find ecma334 -name \*.xml)
21
22 ASSEMBLED_DOCS = \
23         cs-errors.tree cs-errors.zip      \
24         ecma334.tree ecma334.zip          \
25         mono-tools.tree mono-tools.zip    \
26         Mono.tree Mono.zip                \
27         netdocs.tree netdocs.zip          \
28         Novell.tree Novell.zip            \
29         nunit-docs.tree nunit-docs.zip
30
31 CLEAN_FILES += $(ASSEMBLED_DOCS)
32
33 all-local: build-documentation
34
35 all-local test-local run-test-local run-test-ondotnet-local doc-update:
36
37 clean-local:
38         -rm $(CLEAN_FILES)
39
40 dist-local: dist-default
41
42 install-local:
43         @:
44
45 uninstall-local:
46         @:
47
48 NETDOCS_DIRS = \
49         $(topdir)/class/corlib/Documentation/en                       \
50         $(topdir)/class/System/Documentation/en                       \
51         $(topdir)/class/System.Core/Documentation/en                  \
52         $(topdir)/class/System.XML/Documentation/en                   \
53         $(topdir)/class/System.Web/Documentation/en                   \
54         $(topdir)/class/System.Web.Services/Documentation/en          \
55         $(topdir)/class/System.Data/Documentation/en                  \
56         $(topdir)/class/System.DirectoryServices/Documentation/en     \
57         $(topdir)/class/System.Drawing/Documentation/en               \
58         $(topdir)/class/System.Security/Documentation/en              \
59         $(topdir)/class/Microsoft.Build.Framework/Documentation/en    \
60         $(topdir)/class/Microsoft.Build.Engine/Documentation/en       \
61         $(topdir)/class/Microsoft.Build.Utilities/Documentation/en
62
63 MONO_DIRS = \
64         $(topdir)/class/Commons.Xml.Relaxng/Documentation/en          \
65         $(topdir)/class/Mono.Cairo/Documentation/en                   \
66         $(topdir)/class/Mono.GetOptions/Documentation/en              \
67         $(topdir)/class/Mono.Options/Documentation/en                 \
68         $(topdir)/class/Mono.Posix/Documentation/en                   \
69         $(topdir)/class/Mono.Security.Win32/Documentation/en          \
70         $(topdir)/class/Mono.Security/Documentation/en
71
72 NOVELL_DIRS = \
73         $(topdir)/class/Novell.Directory.Ldap/Documentation/en
74
75 NUNIT_DIRS = \
76         $(topdir)/nunit20/core/Documentation/en       \
77         $(topdir)/nunit20/framework/Documentation/en  \
78         $(topdir)/nunit20/mocks/Documentation/en      \
79         $(topdir)/nunit20/util/Documentation/en
80
81 build-documentation: $(ASSEMBLED_DOCS)
82
83 netdocs.tree netdocs.zip:
84         $(MDOC) assemble -o netdocs $(NETDOCS_DIRS)
85
86 Mono.tree Mono.zip:
87         $(MDOC) assemble -o Mono $(MONO_DIRS)
88
89 Novell.tree Novell.zip:
90         $(MDOC) assemble -o Novell $(NOVELL_DIRS)
91
92 nunit-docs.tree nunit-docs.zip:
93         $(MDOC) assemble -o nunit-docs $(NUNIT_DIRS)
94
95 cs-errors.tree cs-errors.zip:
96         $(MDOC) assemble -o cs-errors -f error cs-errors.config
97
98 ecma334.tree ecma334.zip:
99         $(MDOC) assemble -o ecma334 -f ecmaspec ecma334
100
101 mono-tools.tree mono-tools.zip: mono-tools.config
102         $(MDOC) assemble -o mono-tools -f man mono-tools.config
103