tools: depend on tools to create includes
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 19 Feb 2015 15:54:53 +0000 (16:54 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 19 Feb 2015 23:21:52 +0000 (00:21 +0100)
Force recreate whenever code is changed.

Makefile

index cf8618bd2e64c47a19e7e1644313b8375909ad74..5fb160ce07a8bc8f4347f354b17c45a9004b568d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,36 +6,36 @@ download: data/DerivedAge.txt data/rfc1345.txt data/countryInfo.txt data/caniuse
 data/DerivedAge.txt:
        tools/wget-ifmodified http://www.unicode.org/Public/UNIDATA/$(@F) $@
 
-unicode-age.inc.pl: data/DerivedAge.txt
-       tools/mkcharver $< >$@
+unicode-age.inc.pl: tools/mkcharver data/DerivedAge.txt
+       $< $(word 2,$^) >$@
 
 data/rfc1345.txt:
        tools/wget-ifmodified http://www.ietf.org/rfc/$(@F) $@
 
-digraphs.inc.pl: data/rfc1345.txt shiar.inc.txt
-       tools/mkdigraphlist $< >$@
+digraphs.inc.pl: tools/mkdigraphlist data/rfc1345.txt shiar.inc.txt
+       $< $(word 2,$^) >$@
 
-unicode-char.inc.pl: digraphs.inc.pl unicode-age.inc.pl
-       tools/mkcharinfo >$@
+unicode-char.inc.pl: tools/mkcharinfo digraphs.inc.pl unicode-age.inc.pl
+       $< >$@
 
-ttfsupport:
-       mkdir -p ttfsupport
-       tools/convert-allfonts
+ttfsupport: tools/convert-allfonts
+       mkdir -p $@
+       $<
 
-unicode-cover.inc.pl: ttfsupport tools/mkfontinfo
-       tools/mkfontinfo >$@
+unicode-cover.inc.pl: tools/mkfontinfo ttfsupport
+       $< >$@
 
 data/countryInfo.txt:
        tools/wget-ifmodified http://download.geonames.org/export/dump/$(@F) $@
 
-countries.inc.pl: data/countryInfo.txt
-       tools/mkcountries-geonames $< >$@
+countries.inc.pl: tools/mkcountries-geonames data/countryInfo.txt
+       $< $(word 2,$^) >$@
 
 data/caniuse.json:
        tools/wget-ifmodified http://caniuse.com/data.json $@
 
-data/browser/support.inc.pl: data/caniuse.json
-       tools/mkcaniuse $< >$@
+data/browser/support.inc.pl: tools/mkcaniuse data/caniuse.json
+       $< $(word 2,$^) >$@
 
 clean:
        -rm digraphs.inc.pl