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