aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2021-04-20 15:13:44 +0200
committerGitHub <noreply@github.com>2021-04-20 15:13:44 +0200
commit086a5861def11036b897c8b21be9af17bbeacc29 (patch)
treef67a1e323166b96990c950641e4dcbe6327c465e /Makefile
parent7cade98cf386d1909b3b1568c30bbe60765ac452 (diff)
parent732172e2b49a1c468d9097cf937d8da83e6f061f (diff)
downloadopenrussian-cli-086a5861def11036b897c8b21be9af17bbeacc29.tar.gz
Merge pull request #1 from vs49688/master
Makefile tweaks and Nix{,OS} support
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 36c75d7..8fe3880 100644
--- a/Makefile
+++ b/Makefile
@@ -21,11 +21,11 @@ openrussian : openrussian.lua
# a database matching the openrussian.lua script.
#.INTERMEDIATE: openrussian-sql.zip
openrussian-sql.zip:
- wget -O $@ 'https://en.openrussian.org/downloads/openrussian-sql.zip'
+ wget -O $@ 'https://api.openrussian.org/downloads/openrussian-sql.zip'
openrussian-sqlite3.db : openrussian-sql.zip mysql2sqlite postprocess.sql
$(RM) $@
- unzip -p $< openrussian.sql | ./mysql2sqlite - | sqlite3 $@
+ unzip -p $< openrussian.sql | awk -f ./mysql2sqlite - | sqlite3 $@
sqlite3 $@ -batch <postprocess.sql
# Try to generate all possible pages
@@ -50,4 +50,6 @@ install : openrussian openrussian-sqlite3.db \
mandb
clean:
- $(RM) openrussian openrussian-sql.zip openrussian-sqlite3.db
+ $(RM) openrussian openrussian-sqlite3.db
+
+.PHONY: all check install clean