git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
word/memory: card game to find matching pairs
[sheet.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index ad2f7a02d126e1716a13d9a487946e8864e6ebc1..0742e97654e9cd629c1ef3f6c4ecf9f4b10511e3 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-17,7
+17,7
@@
sitemap.xml: tools/mksitemap
light.css: tools/stripcss base.css
$(call cmdsave,$^)
light.css: tools/stripcss base.css
$(call cmdsave,$^)
-word: word/put.js data/wordlist.en.json data/wordlist.nl.json data/wordlist.ru.json
+word: word/put.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/put.js: $(download)
tools/wget-ifmodified https://github.com/kriszyp/put-selector/raw/master/put.js $@
@@
-73,9
+73,12
@@
data/wordlist.en.inc.pl: tools/mkwordlist data/wordlist.version.txt
$(call cmdsave,$<)
data/wordlist.%.inc.pl: tools/mkwordlist data/wordlist.version.txt
$(call cmdsave,$< $*)
$(call cmdsave,$<)
data/wordlist.%.inc.pl: tools/mkwordlist data/wordlist.version.txt
$(call cmdsave,$< $*)
-data/word
list.%.json: data/wordlist.
%.inc.pl
+data/word
%.json: data/word
%.inc.pl
$(call cmdsave,perl -MJSON=encode_json -E "print encode_json(do \$$ARGV[0])" ./$<)
$(call cmdsave,perl -MJSON=encode_json -E "print encode_json(do \$$ARGV[0])" ./$<)
+data/wordpairs.inc.pl: data/wordlist.version.txt
+ @perl -I. -MShiar_Sheet::DB -MData::Dump=pp -E 'say pp(Shiar_Sheet::DB->connect->select("word w JOIN word a ON w.id=a.ref" => "w.id, a.id", {"a.lang"=>undef})->map or exit 1)' >$@
+
.SECONDARY: data/font/%.ttf
data/font/%.ttf:
find /usr/share/fonts/truetype/ ~/.fonts/ -iname "$(@F)" | head -1 | xargs -i ln -sf {} $@
.SECONDARY: data/font/%.ttf
data/font/%.ttf:
find /usr/share/fonts/truetype/ ~/.fonts/ -iname "$(@F)" | head -1 | xargs -i ln -sf {} $@