]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blob - includes/normal/Makefile
MediaWiki 1.17.4
[autoinstalls/mediawiki.git] / includes / normal / Makefile
1 .PHONY : all test testutf8 testclean icutest bench icubench clean distclean
2
3 ## Latest greatest version of Unicode
4 ## May cause confusion if running test suite from these files
5 ## when the data was generated from a previous version.
6 #BASE=http://www.unicode.org/Public/UNIDATA
7
8 # Explicitly using Unicode 5.1
9 BASE=http://www.unicode.org/Public/5.1.0/ucd
10
11 # Can override to php-cli or php5 or whatevah
12 PHP=php
13 #PHP=php-cli
14
15 # Some nice tool to grab URLs with
16 FETCH=wget
17 #FETCH=fetch
18
19 all : UtfNormalData.inc Utf8Case.php
20
21 UtfNormalData.inc : UtfNormalGenerate.php UtfNormalUtil.php UnicodeData.txt CompositionExclusions.txt NormalizationCorrections.txt DerivedNormalizationProps.txt
22         $(PHP) UtfNormalGenerate.php
23
24 Utf8Case.php : Utf8CaseGenerate.php UtfNormalUtil.php UnicodeData.txt
25         $(PHP) Utf8CaseGenerate.php
26
27 test : testutf8 testclean UtfNormalTest.php UtfNormalData.inc NormalizationTest.txt
28         $(PHP) UtfNormalTest.php
29
30 testutf8 : Utf8Test.php UTF-8-test.txt
31         $(PHP) Utf8Test.php
32
33 testclean : CleanUpTest.php
34         $(PHP) CleanUpTest.php
35
36 bench : UtfNormalData.inc testdata/washington.txt testdata/berlin.txt testdata/tokyo.txt testdata/young.txt testdata/bulgakov.txt
37         $(PHP) UtfNormalBench.php
38
39 icutest : UtfNormalData.inc NormalizationTest.txt
40         $(PHP) Utf8Test.php --icu
41         $(PHP) CleanUpTest.php --icu
42         $(PHP) UtfNormalTest.php --icu
43
44 icubench : UtfNormalData.inc testdata/washington.txt testdata/berlin.txt testdata/tokyo.txt testdata/young.txt testdata/bulgakov.txt
45         $(PHP) UtfNormalBench.php --icu
46
47 clean :
48         rm -f UtfNormalData.inc UtfNormalDataK.inc
49
50 distclean : clean
51         rm -f CompositionExclusions.txt NormalizationTest.txt NormalizationCorrections.txt UnicodeData.txt DerivedNormalizationProps.txt UTF-8-test.txt
52
53 # The Unicode data files...
54 CompositionExclusions.txt :
55         $(FETCH) $(BASE)/CompositionExclusions.txt
56
57 NormalizationTest.txt :
58         $(FETCH) $(BASE)/NormalizationTest.txt
59
60 NormalizationCorrections.txt :
61         $(FETCH) $(BASE)/NormalizationCorrections.txt
62
63 DerivedNormalizationProps.txt :
64         $(FETCH) $(BASE)/DerivedNormalizationProps.txt
65
66 UnicodeData.txt :
67         $(FETCH) $(BASE)/UnicodeData.txt
68
69 UTF-8-test.txt :
70         $(FETCH) http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt
71
72 testdata/berlin.txt :
73         mkdir -p testdata && wget -U MediaWiki/test -O testdata/berlin.txt "http://de.wikipedia.org/w/index.php?title=Berlin&oldid=2775712&action=raw"
74
75 testdata/washington.txt :
76         mkdir -p testdata && wget -U MediaWiki/test -O testdata/washington.txt "http://en.wikipedia.org/w/index.php?title=Washington%2C_D.C.&oldid=6370218&action=raw"
77
78 testdata/tokyo.txt :
79         mkdir -p testdata && wget -U MediaWiki/test -O testdata/tokyo.txt "http://ja.wikipedia.org/w/index.php?title=%E6%9D%B1%E4%BA%AC%E9%83%BD&oldid=940880&action=raw"
80
81 testdata/young.txt :
82         mkdir -p testdata && wget -U MediaWiki/test -O testdata/young.txt "http://ko.wikipedia.org/w/index.php?title=%EC%9D%B4%EC%88%98%EC%98%81&oldid=627688&action=raw"
83
84 testdata/bulgakov.txt :
85         mkdir -p testdata && wget -U MediaWiki/test -O testdata/bulgakov.txt "http://ru.wikipedia.org/w/index.php?title=%D0%91%D1%83%D0%BB%D0%B3%D0%B0%D0%BA%D0%BE%D0%B2%2C_%D0%A1%D0%B5%D1%80%D0%B3%D0%B5%D0%B9_%D0%9D%D0%B8%D0%BA%D0%BE%D0%BB%D0%B0%D0%B5%D0%B2%D0%B8%D1%87&oldid=17704&action=raw"