countries: make rule to run include generation
[sheet.git] / Makefile
index 4782932052327eaf610c7b451d4eca844b9c8a42..30f62a9808420be2098106ee3dcd08af6b5d5dc4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-all: unicode-char.inc.pl unicode-cover.inc.pl
+all: unicode-char.inc.pl unicode-cover.inc.pl countries.inc.pl
 
 data/rfc1345.txt:
        wget http://www.ietf.org/rfc/rfc1345.txt -O $@
@@ -16,6 +16,12 @@ 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