tools: replace repeated make prerequisites by $<
[sheet.git] / Makefile
index 91df36d2c7338c545a8ec4a87ca57531a2a2ac53..987db4152d9ba1ec0d73fc0d26d60099f61e4d1b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,13 +4,13 @@ data/DerivedAge.txt:
        wget http://www.unicode.org/Public/UNIDATA/DerivedAge.txt -O $@
 
 unicode-age.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 >$@
+       tools/mkcharver $< >$@
 
 data/rfc1345.txt:
        wget http://www.ietf.org/rfc/rfc1345.txt -O $@
 
 digraphs.inc.pl: data/rfc1345.txt
 
 data/rfc1345.txt:
        wget http://www.ietf.org/rfc/rfc1345.txt -O $@
 
 digraphs.inc.pl: data/rfc1345.txt
-       tools/mkdigraphlist data/rfc1345.txt >$@
+       tools/mkdigraphlist $< >$@
 
 unicode-char.inc.pl: digraphs.inc.pl unicode-age.inc.pl
        tools/mkcharinfo >$@
 
 unicode-char.inc.pl: digraphs.inc.pl unicode-age.inc.pl
        tools/mkcharinfo >$@
@@ -26,13 +26,13 @@ data/countryInfo.txt:
        wget http://download.geonames.org/export/dump/countryInfo.txt -O $@
 
 countries.inc.pl: 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 >$@
+       tools/mkcountries-geonames $< >$@
 
 data/caniuse.json:
        tools/wget-ifmodified http://caniuse.com/data.json $@
 
 data/browser/support.inc.pl: data/caniuse.json
 
 data/caniuse.json:
        tools/wget-ifmodified http://caniuse.com/data.json $@
 
 data/browser/support.inc.pl: data/caniuse.json
-       tools/mkcaniuse data/caniuse.json >$@
+       tools/mkcaniuse $< >$@
 
 clean:
        -rm digraphs.inc.pl
 
 clean:
        -rm digraphs.inc.pl