| 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 |
content-checker-files |
| 11 |
|
| 12 |
update: clean-remote-files \ |
| 13 |
tokenizer-remote-files \ |
| 14 |
tree-construction-remote-files |
| 15 |
|
| 16 |
content-type-files: content-type-result.txt |
| 17 |
|
| 18 |
content-type-result.txt: always |
| 19 |
cd .. && perl t/ContentType.t &> t/$@ |
| 20 |
|
| 21 |
tokenizer-files: tokenizer-remote-files tokenizer-result.txt |
| 22 |
|
| 23 |
tokenizer-remote-files: tokenizer \ |
| 24 |
tokenizer/test1.test tokenizer/test2.test tokenizer/contentModelFlags.test \ |
| 25 |
tokenizer/escapeFlag.test \ |
| 26 |
tokenizer/test3.test \ |
| 27 |
tokenizer/test4.test \ |
| 28 |
tokenizer/LICENSE |
| 29 |
|
| 30 |
tokenizer: |
| 31 |
$(MKDIR) $@ |
| 32 |
|
| 33 |
tokenizer/%.test: |
| 34 |
$(WGET) -O $@ http://html5lib.googlecode.com/svn/trunk/testdata/$@ |
| 35 |
|
| 36 |
tokenizer/LICENSE: |
| 37 |
$(WGET) -O $@ http://html5lib.googlecode.com/svn/trunk/LICENSE |
| 38 |
|
| 39 |
tokenizer-result.txt: always |
| 40 |
cd .. && perl t/HTML-tokenizer.t &> t/$@ |
| 41 |
|
| 42 |
tree-construction-files: tree-construction-remote-files \ |
| 43 |
tree-construction-result.txt |
| 44 |
|
| 45 |
tree-construction-remote-files: tree-construction \ |
| 46 |
tree-construction/tests1.dat \ |
| 47 |
tree-construction/tests2.dat \ |
| 48 |
tree-construction/tests3.dat \ |
| 49 |
tree-construction/tests4.dat \ |
| 50 |
tree-construction/tests5.dat \ |
| 51 |
tree-construction/tests6.dat \ |
| 52 |
tree-construction/LICENSE |
| 53 |
|
| 54 |
tree-construction: |
| 55 |
$(MKDIR) $@ |
| 56 |
|
| 57 |
tree-construction/%.dat: |
| 58 |
$(WGET) -O $@ http://html5lib.googlecode.com/svn/trunk/testdata/$@ |
| 59 |
|
| 60 |
tree-construction/LICENSE: |
| 61 |
$(WGET) -O $@ http://html5lib.googlecode.com/svn/trunk/LICENSE |
| 62 |
|
| 63 |
tree-construction-result.txt: always |
| 64 |
cd .. && perl t/HTML-tree.t &> t/$@ |
| 65 |
|
| 66 |
content-checker-files: content-checker-result.txt |
| 67 |
|
| 68 |
content-checker-result.txt: always |
| 69 |
cd .. && perl t/ContentChecker.t &> t/$@ |
| 70 |
|
| 71 |
clean-remote-files: |
| 72 |
$(RMALL) tokenizer/*.test tokenizer/LICENSE |
| 73 |
$(RMALL) tree-construction/*.dat tree-construction/LICENSE |
| 74 |
|
| 75 |
always: |
| 76 |
|
| 77 |
## License: Public Domain. |
| 78 |
## $Date: 2007/07/16 07:03:09 $ |