aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a6b777f..55f7bf2 100644
--- a/Makefile
+++ b/Makefile
@@ -28,6 +28,14 @@ openrussian-sqlite3.db : openrussian-sql.zip mysql2sqlite postprocess.sql
unzip -p $< openrussian.sql | ./mysql2sqlite - | sqlite3 $@
sqlite3 $@ -batch <postprocess.sql
+# Try to generate all possible pages
+check : openrussian-sqlite3.db openrussian
+ sqlite3 $< 'SELECT bare FROM words WHERE LIKELY(disabled = 0)' | \
+ while read -r bare; do \
+ ./openrussian -V -p "$$bare" </dev/null >/dev/null || \
+ echo "Error generating \"$$bare\"" >/dev/stderr; \
+ done
+
# NOTE: Installation of the Bash completions depends on the Debain bash-completion
# package being installed or something similar
install : openrussian openrussian-sqlite3.db openrussian-completion.bash