X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/d74545af2334960d43ae45714b4eddb5ecdbd528..2304fc9d1a391372a6714502fb769c9d1a5ed182:/Makefile diff --git a/Makefile b/Makefile index e635f5f..7388647 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -all: sitemap.xml light.css plan.plp data/digraphs.inc.pl data/unicode-cover.inc.pl data/countries.inc.pl data/browser data/termcol-xcolor.inc.pl data/digraphs-xorg.inc.pl word +all: sitemap.xml light.css plan.plp UPDATE data/digraphs.inc.pl data/unicode-cover.inc.pl data/countries.inc.pl data/browser data/termcol-xcolor.inc.pl data/digraphs-xorg.inc.pl word more: all .PHONY: force # applied to download after 2 hours @@ -20,7 +20,10 @@ light.css: tools/stripcss base.css plan.plp: TODO kramdown $< >$@ -word: word/put.min.js data/wordlist.en.json data/wordlist.nl.json data/wordlist.ru.json data/wordpairs.json +UPDATE: $(download) + $(call cmdsave,git log -1 --date=short --pretty="%ad %s") + +word: word/put.min.js data/wordlist.inc.pl data/wordlist.en.json data/wordlist.nl.json data/wordlist.ru.json data/wordpairs.json word/put.js: $(download) tools/wget-ifmodified https://github.com/kriszyp/put-selector/raw/master/put.js $@ @@ -78,7 +81,7 @@ data/wordlist.version.txt: force @[ -e $@ ] || date -Is >$@ @perl -ni -I. -MShiar_Sheet::DB -E 'say (Shiar_Sheet::DB->connect->select(word => "max(updated)", \["updated>?", $$_])->list or exit 1)' $@ || true -data/wordlist.en.inc.pl: tools/mkwordlist data/wordlist.version.txt +data/wordlist.inc.pl: tools/mkwordlist data/wordlist.version.txt $(call cmdsave,$<) data/wordlist.%.inc.pl: tools/mkwordlist data/wordlist.version.txt $(call cmdsave,$< $*)