2009-03-16 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / tools / monodoc / Makefile
blobcffa79d10609936a25fbcb8553a449d1ab900957
1 thisdir = tools/monodoc
2 SUBDIRS =
3 include ../../build/rules.make
5 LIBRARY = monodoc.dll
6 LIBRARY_PACKAGE = monodoc
8 RESOURCE_FILES = \
9 Resources/base.css \
10 Resources/ecmaspec-html-css.xsl \
11 Resources/ecmaspec-html.xsl \
12 Resources/ecmaspec.css \
13 Resources/helper.js \
14 Resources/home.html \
15 Resources/Lminus.gif \
16 Resources/Lplus.gif \
17 Resources/mdoc-html-utils.xsl \
18 Resources/mdoc-sections-css.xsl \
19 Resources/mdoc-sections.xsl \
20 Resources/mono-ecma-css.xsl \
21 Resources/mono-ecma-impl.xsl \
22 Resources/mono-ecma.css \
23 Resources/mono-ecma.xsl
25 MAN_TEST_FILES = \
26 Test/man-provider-test.cs \
27 Test/man-test1.1 \
28 Test/man-test1.html \
29 Test/man-test2.1 \
30 Test/man-test2.html \
31 Test/man-test3.1 \
32 Test/man-test3.html \
33 Test/man-test4.1 \
34 Test/man-test4.html
36 EXTRA_DISTFILES = \
37 monodoc.dll.config.in \
38 $(RESOURCE_FILES) \
39 $(MAN_TEST_FILES)
41 LIB_MCS_FLAGS = \
42 /codepage:utf8 \
43 /nowarn:169,164,162,168,219 \
44 /r:Commons.Xml.Relaxng \
45 /resource:Resources/base.css,base.css \
46 /resource:Resources/ecmaspec-html-css.xsl,ecmaspec-html-css.xsl \
47 /resource:Resources/ecmaspec-html.xsl,ecmaspec-html.xsl \
48 /resource:Resources/ecmaspec.css,ecmaspec.css \
49 /resource:Resources/helper.js,helper.js \
50 /resource:Resources/home.html,home.html \
51 /resource:Resources/Lminus.gif,Lminus.gif \
52 /resource:Resources/Lplus.gif,Lplus.gif \
53 /resource:Resources/mdoc-html-utils.xsl,mdoc-html-utils.xsl \
54 /resource:Resources/mdoc-sections-css.xsl,mdoc-sections-css.xsl \
55 /resource:Resources/mdoc-sections.xsl,mdoc-sections.xsl \
56 /resource:Resources/mono-ecma-css.xsl,mono-ecma-css.xsl \
57 /resource:Resources/mono-ecma-impl.xsl,mono-ecma-impl.xsl \
58 /resource:Resources/mono-ecma.css,mono-ecma.css \
59 /resource:Resources/mono-ecma.xsl,mono-ecma.xsl \
60 /r:ICSharpCode.SharpZipLib \
61 /r:$(corlib) \
62 /r:System.dll \
63 /r:System.Web \
64 /r:System.Web.Services \
65 /r:System.Xml.dll
67 include ../../build/library.make
69 $(the_lib): Makefile $(RESOURCE_FILES)
71 all-local: $(the_lib).config
73 $(the_lib).config: Makefile
74 sed 's,@monodoc_refdir@,$(mono_libdir)/monodoc,g' monodoc.dll.config.in > $@
76 test: Test/man-provider-test.exe
78 run-test-local: check-man-provider
80 run-test-update: check-man-provider-update
82 Test/man-provider-test.exe: Test/man-provider-test.cs $(the_lib)
83 $(CSCOMPILE) -target:exe -out:$@ $< /r:$(the_lib)
85 my_mono = \
86 MONO_REGISTRY_PATH="$(HOME)/.mono/registry" \
87 $(TEST_RUNTIME) \
88 $(RUNTIME_FLAGS)
90 check-man-provider: Test/man-provider-test.exe
91 $(my_mono) $< Test/man-test1.1 | diff - Test/man-test1.html
92 $(my_mono) $< Test/man-test2.1 | diff - Test/man-test2.html
93 $(my_mono) $< Test/man-test3.1 | diff - Test/man-test3.html
94 $(my_mono) $< Test/man-test4.1 | diff - Test/man-test4.html
96 check-man-provider-update: Test/man-provider-test.exe
97 $(my_mono) $< Test/man-test1.1 > Test/man-test1.html
98 $(my_mono) $< Test/man-test2.1 > Test/man-test2.html
99 $(my_mono) $< Test/man-test3.1 > Test/man-test3.html
100 $(my_mono) $< Test/man-test4.1 > Test/man-test4.html
102 clean-local: cleanup
104 cleanup:
105 -rm -f Test/man-provider-test.exe*