Merge "DatabaseMssql: Don't duplicate body of makeList()"
[mediawiki.git] / includes / libs / normal / Makefile
blobb00154df658ff3d9715414614b30a935fb6b611d
1 .PHONY : all test testutf8 testclean icutest bench icubench clean distclean
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
8 # Explicitly using Unicode 6.0
9 BASE=http://www.unicode.org/Public/6.0.0/ucd
11 # Can override to php-cli or php5 or whatever
12 PHP=php
13 #PHP=php-cli
15 # Some nice tool to grab URLs with
16 FETCH=wget
17 #FETCH=fetch
19 all : UtfNormalData.inc
21 UtfNormalData.inc : UtfNormalGenerate.php UtfNormalUtil.php UnicodeData.txt CompositionExclusions.txt NormalizationCorrections.txt DerivedNormalizationProps.txt
22 $(PHP) UtfNormalGenerate.php
24 test : UtfNormalTest.php UtfNormalData.inc NormalizationTest.txt
25 $(PHP) UtfNormalTest.php
27 bench : UtfNormalData.inc testdata/washington.txt testdata/berlin.txt testdata/tokyo.txt testdata/young.txt testdata/bulgakov.txt
28 $(PHP) UtfNormalBench.php
30 icutest : UtfNormalData.inc NormalizationTest.txt
31 $(PHP) Utf8Test.php --icu
32 $(PHP) UtfNormalTest.php --icu
34 icubench : UtfNormalData.inc testdata/washington.txt testdata/berlin.txt testdata/tokyo.txt testdata/young.txt testdata/bulgakov.txt
35 $(PHP) UtfNormalBench.php --icu
37 clean :
38 rm -f UtfNormalData.inc UtfNormalDataK.inc
40 distclean : clean
41 rm -f CompositionExclusions.txt NormalizationTest.txt NormalizationCorrections.txt UnicodeData.txt DerivedNormalizationProps.txt UTF-8-test.txt
43 # The Unicode data files...
44 CompositionExclusions.txt :
45 $(FETCH) $(BASE)/CompositionExclusions.txt
47 NormalizationTest.txt :
48 $(FETCH) $(BASE)/NormalizationTest.txt
50 NormalizationCorrections.txt :
51 $(FETCH) $(BASE)/NormalizationCorrections.txt
53 DerivedNormalizationProps.txt :
54 $(FETCH) $(BASE)/DerivedNormalizationProps.txt
56 UnicodeData.txt :
57 $(FETCH) $(BASE)/UnicodeData.txt
59 testdata/berlin.txt :
60 mkdir -p testdata && wget -U MediaWiki/test -O testdata/berlin.txt "http://de.wikipedia.org/w/index.php?title=Berlin&oldid=2775712&action=raw"
62 testdata/washington.txt :
63 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"
65 testdata/tokyo.txt :
66 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"
68 testdata/young.txt :
69 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"
71 testdata/bulgakov.txt :
72 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"