word: make rule to generate perl include
authorMischa POSLAWSKY <perl@shiar.org>
Fri, 16 Oct 2020 22:33:40 +0000 (00:33 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Tue, 20 Oct 2020 20:49:11 +0000 (22:49 +0200)
Move to data/ for derived data.

Makefile
word.plp

index 994c7058c9c404172c6d513119ed3f388a7cc0b2..a0236ed2900ee78a6c6d58fb46dcb4152371c29d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -60,6 +60,9 @@ data/xcolors:
 data/termcol-xcolor.inc.pl: tools/mktermcol-xcolor data/xcolors/themes
        $(call cmdsave,$^/*)
 
+data/wordlist.en.inc.pl: tools/mkwordlist
+       $(call cmdsave,$^)
+
 .SECONDARY: data/font/%.ttf
 data/font/%.ttf:
        find /usr/share/fonts/truetype/ ~/.fonts/ -iname "$(@F)" | head -1 | xargs -i ln -sf {} $@
index 4d60f9a445da3fd40e177b1a07fb14ef63e6465a..2c16a24a71282d5433c3327223ad76f190ad9c6a 100644 (file)
--- a/word.plp
+++ b/word.plp
@@ -1,6 +1,6 @@
 <(common.inc.plp)><:
 
-my $wordlist = 'wordlist.en.inc.pl';
+my $wordlist = "data/wordlist.en.inc.pl";
 my $limit = $get{v} // (exists $get{v} ? 4 : 3);
 
 Html({