-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 cache
-more: all
+all: sitemap.xml light.css plan.plp UPDATE data cache
.PHONY: force # applied to download after 2 hours
download := $(shell [ -z $$(find data/download -mmin -120) ] && (touch data/download && echo force))
$(call cmdsave,git log -1 --date=short --pretty="%ad %s")
cache: $(patsubst %.inc.pl,data/%.json,$(wildcard charset-*.inc.pl) writing-latn.inc.pl)
-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: word/put.min.js 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 $@
word/%.min.js: word/%.js
uglifyjs -m '' $< -o $@
+data: 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 data/unicode-sampler word
+
data/DerivedAge.txt: $(download)
tools/wget-ifmodified http://www.unicode.org/Public/UNIDATA/$(@F) $@
@[ -e $@ ] || date -Is >$@
tools/lastword $@ || true
-data/wordlist.inc.pl: tools/mkwordlist data/wordlist.version.txt
- $(call cmdsave,$<)
data/wordlist.%.inc.pl: tools/mkwordlist data/wordlist.version.txt
$(call cmdsave,$< $*)
data/word%.json: data/word%.inc.pl