browser: make rule to create support include from caniuse data
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 12 Feb 2015 05:18:46 +0000 (06:18 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Fri, 13 Feb 2015 16:46:33 +0000 (17:46 +0100)
Makefile

index 4e51768..91df36d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-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
 
 data/DerivedAge.txt:
        wget http://www.unicode.org/Public/UNIDATA/DerivedAge.txt -O $@
@@ -31,10 +31,14 @@ countries.inc.pl: data/countryInfo.txt
 data/caniuse.json:
        tools/wget-ifmodified http://caniuse.com/data.json $@
 
+data/browser/support.inc.pl: data/caniuse.json
+       tools/mkcaniuse data/caniuse.json >$@
+
 clean:
        -rm digraphs.inc.pl
        -rm unicode-char.inc.pl
        -rm unicode-age.inc.pl
        -rm -rf ttfsupport/
        -rm unicode-cover.inc.pl
+       -rm data/browser/support.inc.pl