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