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