0
|
1 |
#
|
|
2 |
# This Makefile generates Smalltalk/X test cases from W3C
|
|
3 |
# language independent DOM test suite
|
|
4 |
#
|
|
5 |
|
|
6 |
MODULES = Core
|
|
7 |
XSLTPROC = xsltproc
|
|
8 |
XMLLINT = xmllint
|
|
9 |
XSL = test2st.xsl
|
|
10 |
|
|
11 |
TEMPDIR = /tmp
|
|
12 |
SOURCEDIR = ../../..
|
|
13 |
|
|
14 |
.PHONY: $(MODULES)
|
|
15 |
|
|
16 |
all: $(MODULES)
|
|
17 |
@echo All done...
|
|
18 |
|
|
19 |
*:
|
|
20 |
@echo -n Making $@...
|
|
21 |
@echo \<test-case xmlns=\"http://www.w3.org/2001/DOM-Test-Suite/Level-3\" xmlns:xi=\"http://www.w3.org/2001/XInclude\"\> > $@TestCase.xml
|
|
22 |
@for test in $@/*.xml; do echo \<xi:include href=\"$$test\"/\> >> $@TestCase.xml; done
|
|
23 |
@echo \</test-case\> >> $@TestCase.xml
|
|
24 |
@$(XSLTPROC) --xinclude --novalid --stringparam module $@ $(XSL) $@TestCase.xml > $(SOURCEDIR)/XMLv2__W3CDOM3$@Tests.st
|
|
25 |
@rm $@TestCase.xml
|
|
26 |
@echo done
|