font: silence warning when make-ing existing ttfsupport
[sheet.git] / Makefile
index 8d71274e0645fc8048cbd679326aa5dcf0d29cd3..cf8618bd2e64c47a19e7e1644313b8375909ad74 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,32 +1,41 @@
-all: unicode-char.inc.pl unicode-cover.inc.pl countries.inc.pl
+all: unicode-char.inc.pl unicode-cover.inc.pl countries.inc.pl data/browser/support.inc.pl
+
+download: data/DerivedAge.txt data/rfc1345.txt data/countryInfo.txt data/caniuse.json
+.PHONY: download
 
 data/DerivedAge.txt:
-       wget http://www.unicode.org/Public/UNIDATA/DerivedAge.txt -O $@
+       tools/wget-ifmodified http://www.unicode.org/Public/UNIDATA/$(@F) $@
 
 unicode-age.inc.pl: data/DerivedAge.txt
-       tools/mkcharver data/DerivedAge.txt >$@
+       tools/mkcharver $< >$@
 
 data/rfc1345.txt:
-       wget http://www.ietf.org/rfc/rfc1345.txt -O $@
+       tools/wget-ifmodified http://www.ietf.org/rfc/$(@F) $@
 
-digraphs.inc.pl: data/rfc1345.txt
-       tools/mkdigraphlist data/rfc1345.txt >$@
+digraphs.inc.pl: data/rfc1345.txt shiar.inc.txt
+       tools/mkdigraphlist $< >$@
 
-unicode-char.inc.pl: digraphs.inc.pl
+unicode-char.inc.pl: digraphs.inc.pl unicode-age.inc.pl
        tools/mkcharinfo >$@
 
 ttfsupport:
-       mkdir ttfsupport
+       mkdir -p ttfsupport
        tools/convert-allfonts
 
 unicode-cover.inc.pl: ttfsupport tools/mkfontinfo
        tools/mkfontinfo >$@
 
 data/countryInfo.txt:
-       wget http://download.geonames.org/export/dump/countryInfo.txt -O $@
+       tools/wget-ifmodified http://download.geonames.org/export/dump/$(@F) $@
 
 countries.inc.pl: data/countryInfo.txt
-       tools/mkcountries-geonames data/countryInfo.txt >$@
+       tools/mkcountries-geonames $< >$@
+
+data/caniuse.json:
+       tools/wget-ifmodified http://caniuse.com/data.json $@
+
+data/browser/support.inc.pl: data/caniuse.json
+       tools/mkcaniuse $< >$@
 
 clean:
        -rm digraphs.inc.pl
@@ -34,4 +43,5 @@ clean:
        -rm unicode-age.inc.pl
        -rm -rf ttfsupport/
        -rm unicode-cover.inc.pl
+       -rm data/browser/support.inc.pl