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