Debian Codegraph @

mcs/tools/mdoc/Makefile

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