db/Makefile
author Volker Birk <vb@pep-project.org>
Mon, 05 Oct 2015 02:22:55 +0200
changeset 366 cfc6e24badaa
parent 365 ef8bbe1f593b
child 368 c8302f5536c3
permissions -rw-r--r--
nicer
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@366
     7
	for c in *.csv ; do echo $$c ; echo .import "$$c" wordlist | sqlite3 -batch -csv $@ ; done
vb@365
     8
vb@365
     9
.PHONY: clean install
vb@365
    10
vb@365
    11
install: system.db
vb@365
    12
	cp system.db $(SYSTEM_DB)
vb@365
    13
vb@365
    14
clean:
vb@365
    15
	rm -f system.db