db/Makefile
author Volker Birk <vb@pep-project.org>
Mon, 05 Oct 2015 02:11:50 +0200
changeset 365 ef8bbe1f593b
child 366 cfc6e24badaa
permissions -rw-r--r--
Makefile for system.db
vb@365
     1
include ../Makefile.conf
vb@365
     2
vb@365
     3
db: system.db
vb@365
     4
vb@365
     5
system.db: create_system_db.sql
vb@365
     6
	sqlite3 -batch $@ < $<
vb@365
     7
	echo .import en.csv wordlist | sqlite3 -batch -csv $@
vb@365
     8
	echo .import de.csv wordlist | sqlite3 -batch -csv $@
vb@365
     9
vb@365
    10
.PHONY: clean install
vb@365
    11
vb@365
    12
install: system.db
vb@365
    13
	cp system.db $(SYSTEM_DB)
vb@365
    14
vb@365
    15
clean:
vb@365
    16
	rm -f system.db