X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/4b71762936d38dfebc9aa8093777e44aad5b41ab..f00f148c4e56bde702d316dd591934adbb4f6232:/Makefile diff --git a/Makefile b/Makefile index 75f269b..138be91 100644 --- a/Makefile +++ b/Makefile @@ -89,7 +89,7 @@ data/wordlist.%.inc.pl: tools/mkwordlist data/wordlist.version.txt data/word%.json: data/word%.inc.pl $(call cmdsave,perl -MJSON=encode_json -E "print encode_json(do \$$ARGV[0])" ./$<) data/%.json: %.inc.pl - $(call cmdsave,perl -MJSON=encode_json -E "print encode_json([ do \$$ARGV[0] ])" ./$<) + $(call cmdsave,perl -MJSON -E "print JSON->new->utf8->canonical->encode(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)' >$@