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