tools/mkcharinfo: unicode age classes
[sheet.git] / Makefile
index 4782932052327eaf610c7b451d4eca844b9c8a42..d7c10031a5ae2953ad1540d6b7fff08c04767731 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,10 @@
-all: unicode-char.inc.pl unicode-cover.inc.pl
+all: unicode-char.inc.pl unicode-cover.inc.pl countries.inc.pl
+
+data/DerivedAge.txt:
+       wget http://www.unicode.org/Public/UNIDATA/DerivedAge.txt -O $@
+
+unicode-age.inc.pl: data/DerivedAge.txt
+       tools/mkcharver data/DerivedAge.txt >$@
 
 data/rfc1345.txt:
        wget http://www.ietf.org/rfc/rfc1345.txt -O $@
@@ -6,7 +12,7 @@ data/rfc1345.txt:
 digraphs.inc.pl: data/rfc1345.txt
        tools/mkdigraphlist data/rfc1345.txt >$@
 
-unicode-char.inc.pl: digraphs.inc.pl
+unicode-char.inc.pl: digraphs.inc.pl unicode-age.inc.pl
        tools/mkcharinfo >$@
 
 ttfsupport:
@@ -16,9 +22,16 @@ ttfsupport:
 unicode-cover.inc.pl: ttfsupport tools/mkfontinfo
        tools/mkfontinfo >$@
 
+data/countryInfo.txt:
+       wget http://download.geonames.org/export/dump/countryInfo.txt -O $@
+
+countries.inc.pl: data/countryInfo.txt
+       tools/mkcountries-geonames data/countryInfo.txt >$@
+
 clean:
        -rm digraphs.inc.pl
        -rm unicode-char.inc.pl
+       -rm unicode-age.inc.pl
        -rm -rf ttfsupport/
        -rm unicode-cover.inc.pl