[sgen] Clear the card table in the finishing pause
[mono.git] / mcs / tools / mdoc / Makefile
1 thisdir = tools/mdoc
2 SUBDIRS = 
3 include ../../build/rules.make
4
5 MDOC_COMMON_FLAGS = \
6         /resource:../../class/monodoc/Resources/mdoc-html-format.xsl,mdoc-html-format.xsl    \
7         /resource:../../class/monodoc/Resources/mdoc-html-utils.xsl,mdoc-html-utils.xsl      \
8         /resource:../../class/monodoc/Resources/mdoc-sections-css.xsl,mdoc-sections-css.xsl  \
9         /resource:../../class/monodoc/Resources/mono-ecma-css.xsl,mono-ecma-css.xsl          \
10         /resource:Resources/defaulttemplate.xsl,defaulttemplate.xsl                 \
11         /resource:Resources/monodoc-ecma.xsd,monodoc-ecma.xsd                       \
12         /resource:Resources/msitomsx.xsl,msitomsx.xsl                               \
13         /resource:Resources/overview.xsl,overview.xsl                               \
14         /resource:Resources/stylesheet.xsl,stylesheet.xsl                           \
15         /r:System.Web.dll                                                           \
16         /r:System.Xml.Linq.dll                                                      \
17         /r:ICSharpCode.SharpZipLib.dll                                              \
18         /r:Mono.Cecil.dll
19
20 LOCAL_MCS_FLAGS = $(MDOC_COMMON_FLAGS) \
21         /r:monodoc.dll
22 PROGRAM = mdoc.exe
23 PROGRAM_DEPS = $(topdir)/class/lib/$(PROFILE)/monodoc.dll
24
25 ifdef NET
26 all : copy-with-deps
27
28 copy-with-deps:
29         -mkdir mdoc-net
30         cp $(PROGRAM) mdoc-net
31         cp $(topdir)/class/lib/$(PROFILE)/Commons.Xml.Relaxng.dll mdoc-net
32         cp $(topdir)/class/lib/$(PROFILE)/ICSharpCode.SharpZipLib.dll mdoc-net
33         cp $(topdir)/class/lib/$(PROFILE)/Mono.Cecil.dll mdoc-net
34         cp $(topdir)/class/lib/$(PROFILE)/monodoc.dll mdoc-net
35 endif
36
37 MONODOC_RESOURCES = \
38         ../../class/monodoc/Resources/mdoc-html-utils.xsl    \
39         ../../class/monodoc/Resources/mdoc-sections-css.xsl  \
40         ../../class/monodoc/Resources/mono-ecma-css.xsl
41
42 MDOC_RESOURCES = \
43         Resources/defaulttemplate.xsl     \
44         Resources/monodoc-ecma.xsd        \
45         Resources/msitomsx.xsl            \
46         Resources/overview.xsl            \
47         Resources/stylesheet.xsl
48
49 MDOC_TEST_FILES = \
50         Test/CLILibraryTypes.dtd                                  \
51         Test/DocTest-v1.cs                                        \
52         Test/DocTest-v2.patch                                     \
53         Test/msxdoc-expected.importslashdoc.xml                   \
54         Test/TestEcmaDocs.xml                                     \
55         Test/validate.check.monodocer                             \
56         Test/validate.check.monodocer.importslashdoc              \
57         Test/validate.check.monodocer.since
58
59 EXTRA_DISTFILES = \
60         $(MDOC_RESOURCES) \
61         $(MDOC_TEST_FILES)
62
63 MULTI-CLASSIC = Test/DocTest-DropNS-classic.dll Test/DocTest-DropNS-classic-multitest.dll
64 MULTI-UNIFIED = Test/DocTest-DropNS-unified.dll Test/DocTest-DropNS-unified-multitest.dll
65
66 $(PROGRAM) : $(MDOC_RESOURCES) $(MONODOC_RESOURCES) $(PROGRAM_DEPS)
67
68 PROGRAM_COMPILE = $(CSCOMPILE) -platform:x86
69
70 include ../../build/executable.make
71
72 $(PROGRAM) : $(build_lib)
73         cp $< $@
74
75 $(PROGRAM) : Makefile
76
77 MONO = \
78         MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" \
79         $(RUNTIME) $(RUNTIME_FLAGS)
80
81 dist-local: dist-default dist-tests
82
83 dist-tests:
84         find Test/en.expected* -name '*.xml'     > .files
85         find Test/html.expected* -name '*.html' >> .files
86         tar cTf .files - | (cd $(distdir); tar xf -)
87         rm .files ; \
88
89 test-local: $(PROGRAM)
90
91 clean-local: cleanup
92
93 cleanup:
94         -rm -Rf Test/en.actual Test/html.actual
95         -rm -f monodocer1.exe*
96
97 Test/DocTest-addNonGeneric.dll:
98         $(CSCOMPILE) $(TEST_CSCFLAGS) -debug -unsafe -target:library -out:$@ Test/DocTest-addNonGeneric.cs
99
100 Test/DocTest-addNonGeneric-v2.dll:
101         $(CSCOMPILE) $(TEST_CSCFLAGS) -debug -unsafe -target:library -out:$@ Test/DocTest-addNonGeneric.cs /define:V2
102
103 Test/DocTest-DropNS-classic-secondary.dll:
104         @echo $(value @)
105         $(CSCOMPILE) $(TEST_CSCFLAGS) -debug -unsafe -target:library -out:$@ Test/DocTest-DropNS-classic-secondary.cs
106
107 Test/DocTest-DropNS-classic.dll:
108         @echo $(value @)
109         $(CSCOMPILE) $(TEST_CSCFLAGS) -debug -unsafe -target:library -out:$@ Test/DocTest-DropNS-classic.cs
110
111 Test/DocTest-DropNS-unified.dll:
112         $(CSCOMPILE) $(TEST_CSCFLAGS) -debug -unsafe -target:library -out:$@ Test/DocTest-DropNS-unified.cs
113
114 Test/DocTest-DropNS-unified-multitest.dll:
115         rm -f $@
116         $(CSCOMPILE) $(TEST_CSCFLAGS) -debug -unsafe -target:library -out:$@ Test/DocTest-DropNS-unified.cs /define:MULTITEST
117
118 Test/DocTest-DropNS-classic-multitest.dll:
119         rm -f $@
120         $(CSCOMPILE) $(TEST_CSCFLAGS) -debug -unsafe -target:library -out:$@ Test/DocTest-DropNS-classic.cs /define:MULTITEST
121
122 Test/DocTest-DropNS-unified-deletetest.dll:
123         rm -f Test/DocTest-DropNS-unified-deletetest.dll
124         $(CSCOMPILE) $(TEST_CSCFLAGS) -debug -unsafe -target:library -out:$@ Test/DocTest-DropNS-unified.cs /define:DELETETEST
125
126 Test/DocTest-DropNS-unified-deletetest-V2.dll:
127         rm -f Test/DocTest-DropNS-unified-deletetest.dll
128         $(CSCOMPILE) $(TEST_CSCFLAGS) -debug -unsafe -target:library -out:Test/DocTest-DropNS-unified-deletetest.dll Test/DocTest-DropNS-unified.cs /define:DELETETEST,V2
129
130 Test/DocTest-DropNS-classic-deletetest.dll:
131         rm -f Test/DocTest-DropNS-classic-deletetest.dll
132         $(CSCOMPILE) $(TEST_CSCFLAGS) -debug -unsafe -target:library -out:$@ Test/DocTest-DropNS-classic.cs /define:DELETETEST
133
134 Test/DocTest-DropNS-classic-deletetest-V2.dll:
135         rm -f Test/DocTest-DropNS-classic-deletetest.dll
136         $(CSCOMPILE) $(TEST_CSCFLAGS) -debug -unsafe -target:library -out:Test/DocTest-DropNS-classic-deletetest.dll Test/DocTest-DropNS-classic.cs /define:DELETETEST,V2
137
138 Test/DocTest.dll: 
139         $(CSCOMPILE) $(TEST_CSCFLAGS) -debug -unsafe -target:library -out:$@ Test/DocTest.cs
140
141 Test/DocTest-InternalInterface.dll: 
142         $(CSCOMPILE) $(TEST_CSCFLAGS) -debug -unsafe -target:library -out:$@ Test/DocTest-InternalInterface.cs
143
144 Test/DocTest.dll-v1: 
145         -rm -f Test/DocTest.cs
146         cp Test/DocTest-v1.cs Test/DocTest.cs
147         -rm -f Test/DocTest.dll
148         $(MAKE) TEST_CSCFLAGS=$(TEST_CSCFLAGS) Test/DocTest.dll
149
150 Test/DocTest.dll-v2: 
151         -rm -f Test/DocTest.cs
152         cp Test/DocTest-v1.cs Test/DocTest.cs
153         cd Test && patch -p0 < DocTest-v2.patch
154         -rm -f Test/DocTest.dll
155         $(MAKE) TEST_CSCFLAGS=$(TEST_CSCFLAGS) Test/DocTest.dll
156
157 Test/DocTest-enumerations.dll: 
158         $(CSCOMPILE) $(TEST_CSCFLAGS) -debug -unsafe -target:library -out:$@ Test/DocTest-enumerations.cs
159
160 check-monodocer-addNonGeneric: $(PROGRAM)
161         -rm -Rf Test/en.actual
162         # first, make a docset with the generic method
163         $(MAKE) Test/DocTest-addNonGeneric.dll
164         $(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual Test/DocTest-addNonGeneric.dll
165
166         # now add a non-generic version of the method and update several times
167         $(MAKE) Test/DocTest-addNonGeneric-v2.dll
168         $(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual Test/DocTest-addNonGeneric-v2.dll
169         $(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual Test/DocTest-addNonGeneric-v2.dll
170         $(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual Test/DocTest-addNonGeneric-v2.dll
171         diff --exclude=.svn -rup Test/en.expected-addNonGeneric Test/en.actual
172
173 check-monodocer-dropns-classic: $(PROGRAM)
174         # tests the simplest --dropns case, a single class where the root namespace was dropped.
175         -rm -Rf Test/en.actual
176         $(MAKE) Test/DocTest-DropNS-classic.dll
177         $(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual Test/DocTest-DropNS-classic.dll --api-style=classic
178         $(MAKE) update-monodocer-dropns-unified
179         diff --exclude=.svn -rup Test/en.expected-dropns-classic-v1 Test/en.actual
180
181 check-monodocer-dropns-multi: $(PROGRAM)
182         -rm -Rf Test/en.actual
183         $(MAKE) Test/DocTest-DropNS-classic.dll
184         $(MAKE) Test/DocTest-DropNS-unified.dll
185         $(MAKE) Test/DocTest-DropNS-classic-multitest.dll
186         $(MAKE) Test/DocTest-DropNS-unified-multitest.dll
187
188         # mdoc update for both classic and unified
189         $(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual $(MULTI-CLASSIC) --api-style=classic -multiassembly
190         $(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual $(MULTI-UNIFIED) --api-style=unified --dropns Test/DocTest-DropNS-unified.dll=MyFramework --dropns Test/DocTest-DropNS-unified-multitest.dll=MyFramework -multiassembly
191         
192         # now run it again to verify idempotency
193         $(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual $(MULTI-CLASSIC) --api-style=classic -multiassembly
194         $(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual $(MULTI-UNIFIED) --api-style=unified --dropns Test/DocTest-DropNS-unified.dll=MyFramework --dropns Test/DocTest-DropNS-unified-multitest.dll=MyFramework -multiassembly
195         
196         diff --exclude=.svn -rup Test/en.expected-dropns-multi Test/en.actual
197
198
199 check-monodocer-dropns-multi-withexisting: $(PROGRAM)
200         -rm -Rf Test/en.actual
201         $(MAKE) Test/DocTest-DropNS-classic.dll
202         $(MAKE) Test/DocTest-DropNS-unified.dll
203         $(MAKE) Test/DocTest-DropNS-classic-multitest.dll
204         $(MAKE) Test/DocTest-DropNS-unified-multitest.dll
205
206         # mdoc update to show a pre-existing set of documents
207         $(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual Test/DocTest-DropNS-classic.dll --api-style=classic
208         $(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual Test/DocTest-DropNS-unified.dll --api-style=unified --dropns Test/DocTest-DropNS-unified.dll=MyFramework 
209         
210         # mdoc update for both classic and unified
211         $(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual $(MULTI-CLASSIC) --api-style=classic -multiassembly
212         $(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual $(MULTI-UNIFIED) --api-style=unified --dropns Test/DocTest-DropNS-unified.dll=MyFramework --dropns Test/DocTest-DropNS-unified-multitest.dll=MyFramework -multiassembly
213         
214         diff --exclude=.svn -rup Test/en.expected-dropns-multi-withexisting Test/en.actual
215
216 check-monodocer-dropns-delete: $(PROGRAM)
217         -rm -Rf Test/en.actual
218         rm -Rf Test/DocTest-DropNS-classic-deletetest.dll
219         rm -Rf Test/DocTest-DropNS-unified-deletetest.dll
220         $(MAKE) Test/DocTest-DropNS-classic-deletetest.dll
221         $(MONO) $(PROGRAM) update --delete --exceptions=all -o Test/en.actual Test/DocTest-DropNS-classic-deletetest.dll --api-style=classic
222         $(MAKE) Test/DocTest-DropNS-unified-deletetest.dll
223         $(MONO) $(PROGRAM) update --delete --exceptions=all -o Test/en.actual Test/DocTest-DropNS-unified-deletetest.dll --api-style=unified --dropns Test/DocTest-DropNS-unified-deletetest.dll=MyFramework
224         $(MAKE) Test/DocTest-DropNS-classic-deletetest-V2.dll
225         $(MONO) $(PROGRAM) update --delete --exceptions=all -o Test/en.actual Test/DocTest-DropNS-classic-deletetest.dll --api-style=classic
226         $(MAKE) Test/DocTest-DropNS-unified-deletetest-V2.dll
227         $(MONO) $(PROGRAM) update --delete --exceptions=all -o Test/en.actual Test/DocTest-DropNS-unified-deletetest.dll --api-style=unified --dropns Test/DocTest-DropNS-unified-deletetest.dll=MyFramework
228         diff --exclude=.dvn -rup Test/en.expected-dropns-delete Test/en.actual
229
230 check-monodocer-dropns-classic-withsecondary: $(PROGRAM)
231         # tests case where a secondary assembly is included with a --dropns parameter
232         -rm -Rf Test/en.actual
233         $(MAKE) Test/DocTest-DropNS-classic.dll
234         $(MAKE) Test/DocTest-DropNS-classic-secondary.dll
235         $(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual Test/DocTest-DropNS-classic.dll Test/DocTest-DropNS-classic-secondary.dll --api-style=classic
236         $(MAKE) update-monodocer-dropns-unified-withsecondary
237         diff --exclude=.svn -rup Test/en.expected-dropns-classic-withsecondary Test/en.actual
238
239 update-monodocer-dropns-unified: $(PROGRAM)
240         $(MAKE) Test/DocTest-DropNS-unified.dll
241         $(MONO) $(PROGRAM) update --debug --exceptions=all -o Test/en.actual Test/DocTest-DropNS-unified.dll --api-style=unified --dropns Test/DocTest-DropNS-unified.dll=MyFramework
242
243 update-monodocer-dropns-unified-withsecondary: $(PROGRAM)
244         $(MAKE) Test/DocTest-DropNS-unified.dll
245         $(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual Test/DocTest-DropNS-unified.dll Test/DocTest-DropNS-classic-secondary.dll --api-style=unified --dropns Test/DocTest-DropNS-unified.dll=MyFramework
246
247 update-monodocer-dropns-classic-secondary: $(PROGRAM)
248         $(MAKE) Test/DocTest-DropNS-classic-secondary.dll
249         $(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual Test/DocTest-DropNS-classic-secondary.dll --api-style=classic
250
251 check-monodocer-internal-interface: $(PROGRAM)
252         # Tests to make sure internal interfaces that are explicitly implemented are not documented
253         -rm -Rf Test/en.actual
254         $(MAKE) Test/DocTest-InternalInterface.dll
255         $(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual Test/DocTest-InternalInterface.dll
256         diff --exclude=.svn -rup Test/en.expected-internal-interface Test/en.actual
257
258 check-monodocer-enumerations: $(PROGRAM)
259         -rm -Rf Test/en.actual
260         $(MAKE) Test/DocTest-enumerations.dll
261         $(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual Test/DocTest-enumerations.dll
262         diff --exclude=.svn -rup Test/en.expected-enumerations Test/en.actual
263
264 check-monodocer-update: $(PROGRAM)
265         find Test/en.expected -name \*.xml -exec rm "{}" \;
266         $(MAKE) Test/DocTest.dll-v1
267         $(MONO) $(PROGRAM) update --exceptions=all -o Test/en.expected Test/DocTest.dll
268
269 check-monodocer: $(PROGRAM)
270         -rm -Rf Test/en.actual
271         $(MAKE) Test/DocTest.dll-v1
272         $(MONO) $(PROGRAM) update --debug --exceptions=all -o Test/en.actual Test/DocTest.dll
273         diff --exclude=.svn -rup Test/en.expected Test/en.actual
274         $(MONO) $(PROGRAM) update --debug --exceptions=all -o Test/en.actual Test/DocTest.dll 
275         diff --exclude=.svn -rup Test/en.expected Test/en.actual
276
277 check-monodocer-since-update: $(PROGRAM)
278         find Test/en.expected.since -name \*.xml -exec rm "{}" \;
279         $(MAKE) Test/DocTest.dll-v1
280         $(MONO) $(PROGRAM) update --exceptions=all -o Test/en.expected.since Test/DocTest.dll 
281         $(MAKE) Test/DocTest.dll-v2
282         $(MONO) $(PROGRAM) update --exceptions=all --since="Version 2.0" \
283                 -o Test/en.expected.since Test/DocTest.dll 
284
285 check-monodocer-since: $(PROGRAM)
286         rm -Rf Test/en.actual
287         $(MAKE) Test/DocTest.dll-v1
288         $(MONO) $(PROGRAM) --debug update --exceptions=all -o Test/en.actual Test/DocTest.dll 
289         $(MAKE) Test/DocTest.dll-v2
290         $(MONO) $(PROGRAM) --debug update --exceptions=all --since="Version 2.0" \
291                 -o Test/en.actual Test/DocTest.dll 
292         diff --exclude=.svn -rup Test/en.expected.since Test/en.actual
293
294 check-monodocer-delete-update: $(PROGRAM)
295         find Test/en.expected.delete -type f -exec rm "{}" \;
296         $(MAKE) Test/DocTest.dll-v1
297         $(MONO) $(PROGRAM) update --exceptions=all -o Test/en.expected.delete Test/DocTest.dll
298         $(MAKE) Test/DocTest.dll-v2
299         $(MONO) $(PROGRAM) update --exceptions=all -o Test/en.expected.delete Test/DocTest.dll
300         $(MAKE) Test/DocTest.dll-v1
301         $(MONO) $(PROGRAM) update -fno-assembly-versions --delete --exceptions=all \
302                 -o Test/en.expected.delete Test/DocTest.dll
303
304 check-monodocer-delete: $(PROGRAM)
305         rm -Rf Test/en.actual
306         $(MAKE) Test/DocTest.dll-v1
307         $(MONO) $(PROGRAM) --debug update --exceptions=all -o Test/en.actual Test/DocTest.dll
308         $(MAKE) Test/DocTest.dll-v2
309         $(MONO) $(PROGRAM) --debug update --exceptions=all -o Test/en.actual Test/DocTest.dll
310         $(MAKE) Test/DocTest.dll-v1
311         $(MONO) $(PROGRAM) --debug update -fno-assembly-versions --delete --exceptions=all -o Test/en.actual Test/DocTest.dll
312         diff --exclude=.svn -rup Test/en.expected.delete Test/en.actual
313
314 check-monodocer-importslashdoc-update: $(PROGRAM)
315         find Test/en.expected.importslashdoc -name \*.xml -exec rm "{}" \;
316         $(MAKE) Test/DocTest.dll-v1 TEST_CSCFLAGS=-doc:Test/DocTest.xml
317         $(MONO) $(PROGRAM) --debug update --exceptions=all -i Test/DocTest.xml \
318                 -o Test/en.expected.importslashdoc Test/DocTest.dll 
319
320 check-monodocer-importslashdoc: $(PROGRAM)
321         rm -Rf Test/en.actual
322         $(MAKE) Test/DocTest.dll-v1 TEST_CSCFLAGS=-doc:Test/DocTest.xml
323         $(MONO) $(PROGRAM) --debug update --exceptions=all -i Test/DocTest.xml \
324                 -o Test/en.actual Test/DocTest.dll 
325         diff --exclude=.svn -rup Test/en.expected.importslashdoc Test/en.actual
326
327 check-monodocer-importecmadoc-update: $(PROGRAM)
328         find Test/en.expected.importecmadoc -name \*.xml -exec rm "{}" \;
329         $(MAKE) Test/DocTest.dll-v1
330         $(MONO) $(PROGRAM) --debug update --exceptions=all -i Test/TestEcmaDocs.xml \
331                 '--type=System.Action`1' --type=System.AsyncCallback \
332                 --type=System.Environment --type=System.Array \
333                 -o Test/en.expected.importecmadoc Test/DocTest.dll 
334
335 check-monodocer-importecmadoc: $(PROGRAM)
336         rm -Rf Test/en.actual
337         $(MAKE) Test/DocTest.dll-v1
338         $(MONO) $(PROGRAM) --debug update --exceptions=all -i Test/TestEcmaDocs.xml \
339                 '--type=System.Action`1' --type=System.AsyncCallback \
340                 --type=System.Environment --type=System.Array \
341                 -o Test/en.actual Test/DocTest.dll 
342         diff --exclude=.svn -rup Test/en.expected.importecmadoc Test/en.actual
343
344 check-mdoc-export-html-update: $(PROGRAM)
345         find Test/html.expected -name \*.html -exec rm "{}" \;
346         $(MONO) $(PROGRAM) export-html -o Test/html.expected \
347                 Test/en.expected.importslashdoc 
348
349 check-mdoc-export-html: check-monodocer $(PROGRAM)
350         rm -Rf Test/html.actual
351         $(MONO) $(PROGRAM) export-html -o Test/html.actual \
352                 Test/en.expected.importslashdoc
353         diff --exclude=.svn -rup Test/html.expected Test/html.actual
354
355 check-mdoc-export-html-with-version: $(PROGRAM)
356         rm -Rf Test/html.actual.v0 Test/html.actual.since-with-v0 .v0.txt .v2.txt
357         $(MONO) $(PROGRAM) export-html -o Test/html.actual.v0 \
358                 Test/en.expected
359         $(MONO) $(PROGRAM) export-html -o Test/html.actual.since-with-v0 \
360                 Test/en.expected.since -with-version 0.0.0.0
361         (cd Test/html.actual.v0            && find . -type f) | sort > .v0.txt
362         (cd Test/html.actual.since-with-v0 && find . -type f) | sort > .v2.txt
363         diff -rup .v0.txt .v2.txt   # assert no types added
364
365 check-md-html-dir: $(PROGRAM)
366         rm -Rf Test/html.actual
367         $(MONO) $(PROGRAM) export-html -dest:Test/html.actual $(DIR) 
368         diff --exclude=.svn -rup Test/html.expected Test/html.actual
369
370 check-mdoc-export-msxdoc-update:
371         $(MONO) $(PROGRAM) export-msxdoc -o - Test/en.expected.importslashdoc \
372                 > Test/msxdoc-expected.importslashdoc.xml
373
374 check-mdoc-export-msxdoc:
375         $(MONO) $(PROGRAM) export-msxdoc -o - Test/en.expected.importslashdoc \
376                 | diff --brief - Test/msxdoc-expected.importslashdoc.xml
377
378 my_abs_top_srcdir = $(shell cd . && pwd)
379
380 check-mdoc-validate-update: $(PROGRAM)
381         $(MONO) $(PROGRAM) validate -f ecma Test/en.expected 2>&1 | \
382                 sed 's#file://$(my_abs_top_srcdir)/##g' > \
383                 Test/validate.check.monodocer
384         $(MONO) $(PROGRAM) validate -f ecma Test/en.expected.importslashdoc 2>&1 | \
385                 sed 's#file://$(my_abs_top_srcdir)/##g' > \
386                 Test/validate.check.monodocer.importslashdoc
387         $(MONO) $(PROGRAM) validate -f ecma Test/en.expected.since 2>&1 | \
388                 sed 's#file://$(my_abs_top_srcdir)/##g' > \
389                 Test/validate.check.monodocer.since
390
391 check-mdoc-validate: $(PROGRAM)
392         $(MONO) $(PROGRAM) validate -f ecma Test/en.expected 2>&1 | \
393                 sed 's#file://$(my_abs_top_srcdir)/##g' | \
394                 diff - Test/validate.check.monodocer
395         $(MONO) $(PROGRAM) validate -f ecma Test/en.expected.importslashdoc 2>&1 | \
396                 sed 's#file://$(my_abs_top_srcdir)/##g' | \
397                 diff --brief - Test/validate.check.monodocer.importslashdoc
398         $(MONO) $(PROGRAM) validate -f ecma Test/en.expected.since 2>&1 | \
399                 sed 's#file://$(my_abs_top_srcdir)/##g' | \
400                 diff --brief - Test/validate.check.monodocer.since
401
402 run-test-local: check-doc-tools
403
404 run-test-update : check-doc-tools-update
405
406 check-doc-tools: check-monodocer-since \
407         check-monodocer-importecmadoc \
408         check-monodocer-importslashdoc \
409         check-monodocer \
410         check-monodocer-delete \
411         check-mdoc-export-html \
412         check-mdoc-export-html-with-version \
413         check-mdoc-export-msxdoc \
414         check-mdoc-validate \
415         check-monodocer-dropns-classic \
416         check-monodocer-dropns-classic-withsecondary \
417         check-monodocer-dropns-delete \
418         check-monodocer-internal-interface \
419         check-monodocer-enumerations \
420         check-monodocer-dropns-multi \
421         check-monodocer-dropns-multi-withexisting
422
423 check-doc-tools-update: check-monodocer-since-update \
424         check-monodocer-importecmadoc-update \
425         check-monodocer-importslashdoc-update \
426         check-monodocer-update \
427         check-monodocer-delete-update \
428         check-mdoc-export-html-update \
429         check-mdoc-export-msxdoc-update \
430         check-mdoc-validate-update 
431
432 check: check-doc-tools 
433