[bcl] Specify the name of the key file on the command line instead of using the Assem...
[mono.git] / mcs / class / monodoc / Makefile
1 thisdir = class/monodoc
2 SUBDIRS = 
3 include ../../build/rules.make
4
5 LIBRARY = monodoc.dll
6 LIBRARY_PACKAGE = monodoc
7 KEYFILE = ../../class/mono.snk
8 # Remove a bunch of "obsolete"-type warning for Lucene.NET
9 # also activate legacy mode to compile old monodoc.dll api
10 LOCAL_MCS_FLAGS = /nowarn:618,612,672,809,414,649 /define:LEGACY_MODE
11
12 IMAGES = \
13         Resources/images/bc_bg.png              \
14         Resources/images/bc_separator.png       \
15         Resources/images/error.png              \
16         Resources/images/hatch.png              \
17         Resources/images/headerbg.png           \
18         Resources/images/help.png               \
19         Resources/images/house.png              \
20         Resources/images/members.png            \
21         Resources/images/namespace.png          \
22         Resources/images/privclass.png          \
23         Resources/images/privdelegate.png       \
24         Resources/images/privenumeration.png    \
25         Resources/images/privevent.png          \
26         Resources/images/privextension.png      \
27         Resources/images/privfield.png          \
28         Resources/images/privinterface.png      \
29         Resources/images/privmethod.png         \
30         Resources/images/privproperty.png       \
31         Resources/images/privstructure.png      \
32         Resources/images/protclass.png          \
33         Resources/images/protdelegate.png       \
34         Resources/images/protenumeration.png    \
35         Resources/images/protevent.png          \
36         Resources/images/protextension.png      \
37         Resources/images/protfield.png          \
38         Resources/images/protinterface.png      \
39         Resources/images/protmethod.png         \
40         Resources/images/protproperty.png       \
41         Resources/images/protstructure.png      \
42         Resources/images/pubclass.png           \
43         Resources/images/pubdelegate.png        \
44         Resources/images/pubenumeration.png     \
45         Resources/images/pubevent.png           \
46         Resources/images/pubextension.png       \
47         Resources/images/pubfield.png           \
48         Resources/images/pubinterface.png       \
49         Resources/images/pubmethod.png          \
50         Resources/images/pubproperty.png        \
51         Resources/images/pubstructure.png       \
52         Resources/images/reference.png          \
53         Resources/images/treebg.png             
54
55 IMAGE_RESOURCE_COMMAND = $(foreach file,$(IMAGES),/resource:../../../external/api-doc-tools/monodoc/$(file),$(notdir $(file)))
56
57 RESOURCE_FILES = \
58         Resources/base.css                \
59         Resources/ecmaspec-html-css.xsl   \
60         Resources/ecmaspec-html.xsl       \
61         Resources/ecmaspec.css            \
62         Resources/helper.js               \
63         Resources/home.html               \
64         Resources/Lminus.gif              \
65         Resources/Lplus.gif               \
66         Resources/creativecommons.png     \
67         Resources/mdoc-html-format.xsl    \
68         Resources/mdoc-html-utils.xsl     \
69         Resources/mdoc-sections-css.xsl   \
70         Resources/mdoc-sections.xsl       \
71         Resources/mono-ecma-css.xsl       \
72         Resources/mono-ecma-impl.xsl      \
73         Resources/mono-ecma.css           \
74         Resources/mono-ecma.xsl                 \
75         Resources/toc-html.xsl
76
77 RESOURCE_COMMAND = $(foreach file,$(RESOURCE_FILES),/resource:../../../external/api-doc-tools/monodoc/$(file),$(notdir $(file)))
78
79
80 EXTRA_DISTFILES = \
81         monodoc.dll.config.in   \
82
83 LIB_REFS = ICSharpCode.SharpZipLib System System.Core System.Xml System.Xml.Linq System.Configuration
84 LIB_MCS_FLAGS = \
85         /unsafe                                                           \
86         /nowarn:169,164,162,168,219,618,612                               \
87         /resource:../../docs/monodoc.xml,monodoc.xml                      \
88         $(RESOURCE_COMMAND) \
89         $(IMAGE_RESOURCE_COMMAND)
90
91 CLEAN_FILES += $(the_lib).config
92
93 TEST_MCS_FLAGS =
94 TEST_LIB_REFS = System System.Core System.Xml
95
96 include ../../build/library.make
97
98 all-local: $(the_lib).config
99
100 $(the_lib).config: monodoc.dll.config.in
101         sed 's,@monodoc_refdir@,$(mono_libdir)/monodoc,g' monodoc.dll.config.in > $@
102