1 |
WGET = wget |
2 |
MKDIR = mkdir |
3 |
RM = rm |
4 |
RMALL = $(RM) -frv |
5 |
|
6 |
all: \ |
7 |
content-type-files \ |
8 |
tokenizer-files \ |
9 |
tree-construction-files \ |
10 |
xml-result.txt \ |
11 |
swml-result.txt \ |
12 |
content-checker-files \ |
13 |
langtag-files |
14 |
|
15 |
update: clean-remote-files \ |
16 |
tokenizer-remote-files \ |
17 |
tree-construction-remote-files |
18 |
|
19 |
content-type-files: content-type-result.txt |
20 |
|
21 |
content-type-result.txt: always |
22 |
cd .. && perl t/ContentType.t &> t/$@ |
23 |
|
24 |
tokenizer-files: tokenizer-remote-files tokenizer-result.txt |
25 |
|
26 |
tokenizer-remote-files: tokenizer \ |
27 |
tokenizer/test1.test tokenizer/test2.test tokenizer/contentModelFlags.test \ |
28 |
tokenizer/escapeFlag.test \ |
29 |
tokenizer/test3.test \ |
30 |
tokenizer/test4.test \ |
31 |
tokenizer/xmlViolation.test \ |
32 |
tokenizer/entities.test \ |
33 |
tokenizer/LICENSE |
34 |
|
35 |
tokenizer: |
36 |
$(MKDIR) $@ |
37 |
|
38 |
tokenizer/%.test: |
39 |
$(WGET) -O $@ http://html5lib.googlecode.com/svn/trunk/testdata/$@ |
40 |
|
41 |
tokenizer/LICENSE: |
42 |
$(WGET) -O $@ http://html5lib.googlecode.com/svn/trunk/LICENSE |
43 |
|
44 |
tokenizer-result.txt: always |
45 |
cd .. && perl t/HTML-tokenizer.t &> t/$@ |
46 |
|
47 |
tree-construction-files: tree-construction-remote-files \ |
48 |
tree-construction-result.txt |
49 |
|
50 |
tree-construction-remote-files: tree-construction \ |
51 |
tree-construction/tests1.dat \ |
52 |
tree-construction/tests2.dat \ |
53 |
tree-construction/tests3.dat \ |
54 |
tree-construction/tests4.dat \ |
55 |
tree-construction/tests5.dat \ |
56 |
tree-construction/tests6.dat \ |
57 |
tree-construction/tests7.dat \ |
58 |
tree-construction/tests8.dat \ |
59 |
tree-construction/tests9.dat \ |
60 |
tree-construction/tests10.dat \ |
61 |
tree-construction/tests11.dat \ |
62 |
tree-construction/tests12.dat \ |
63 |
tree-construction/LICENSE |
64 |
|
65 |
tree-construction: |
66 |
$(MKDIR) $@ |
67 |
|
68 |
tree-construction/%.dat: |
69 |
$(WGET) -O $@ http://html5lib.googlecode.com/svn/trunk/testdata/$@ |
70 |
|
71 |
tree-construction/LICENSE: |
72 |
$(WGET) -O $@ http://html5lib.googlecode.com/svn/trunk/LICENSE |
73 |
|
74 |
tree-construction-result.txt: always |
75 |
cd .. && perl t/HTML-tree.t &> t/$@ |
76 |
|
77 |
xml-result.txt: always |
78 |
cd .. && perl t/XML-Parser.t &> t/$@ |
79 |
|
80 |
swml-result.txt: always |
81 |
cd .. && perl t/SWML-Parser.t &> t/$@ |
82 |
|
83 |
content-checker-files: content-checker-result.txt \ |
84 |
content-checker-atom-result.txt \ |
85 |
content-checker-xml-result.txt |
86 |
|
87 |
content-checker-result.txt: always |
88 |
cd .. && perl t/ContentChecker.t &> t/$@ |
89 |
|
90 |
content-checker-atom-result.txt: always |
91 |
cd .. && perl t/ContentChecker-Atom.t &> t/$@ |
92 |
|
93 |
content-checker-xml-result.txt: always |
94 |
cd .. && perl t/ContentChecker-XML.t &> t/$@ |
95 |
|
96 |
langtag-files: langtag-result.txt |
97 |
|
98 |
langtag-result.txt: always |
99 |
cd .. && perl t/LangTag.t &> t/$@ |
100 |
|
101 |
clean-remote-files: |
102 |
$(RMALL) tokenizer/*.test tokenizer/LICENSE |
103 |
$(RMALL) tree-construction/*.dat tree-construction/LICENSE |
104 |
|
105 |
always: |
106 |
|
107 |
## License: Public Domain. |
108 |
## $Date: 2008/10/14 09:00:57 $ |