db/Makefile
author Krista Grothoff <krista@pep-project.org>
Mon, 24 Oct 2016 14:35:42 +0200
branchENGINE-128
changeset 1325 5f2e643a4fd7
parent 944 e97cf5e73b64
child 1513 e7f7e42385b5
permissions -rw-r--r--
ENGINE-128: MIME_encrypt/decrypt convenience functions almost up and running/tested! Need to fix bug in default first.
     1 include ../Makefile.conf
     2 
     3 db: system.db
     4 
     5 dicos=$(wildcard *.csv)
     6 
     7 system.db: create_system_db.sql $(dicos)
     8 	-mv -f $@ $@~ 
     9 	sqlite3 -batch $@ < $<
    10 	for c in $(dicos); do echo $$c ; echo .import "$$c" wordlist | sqlite3 -batch -csv $@ ; done
    11 
    12 .PHONY: clean install
    13 
    14 install: system.db
    15 	mkdir -p `dirname $(SYSTEM_DB)`
    16 	cp system.db $(SYSTEM_DB)
    17 
    18 clean:
    19 	rm -f system.db