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
     1 include ../Makefile.conf
     2 
     3 db: system.db
     4 
     5 system.db: create_system_db.sql
     6 	sqlite3 -batch $@ < $<
     7 	for c in *.csv ; do echo $$c ; echo .import "$$c" wordlist | sqlite3 -batch -csv $@ ; done
     8 
     9 .PHONY: clean install
    10 
    11 install: system.db
    12 	cp system.db $(SYSTEM_DB)
    13 
    14 clean:
    15 	rm -f system.db