db/Makefile
author Krista Bennett <krista@pep-project.org>
Thu, 29 Jun 2017 12:14:56 +0200
branchENGINE-9
changeset 1898 7d6df20bf02c
parent 1513 e7f7e42385b5
child 1952 4722b371f609
child 1988 ea7bceda4dc8
permissions -rw-r--r--
ENGINE-9: fixed bad pointer
     1 # This file is under GNU General Public License 3.0
     2 # see LICENSE.txt
     3 
     4 include ../Makefile.conf
     5 
     6 db: system.db
     7 
     8 dicos=$(wildcard *.csv)
     9 
    10 system.db: create_system_db.sql $(dicos)
    11 	-mv -f $@ $@~ 
    12 	sqlite3 -batch $@ < $<
    13 	for c in $(dicos); do echo $$c ; echo .import "$$c" wordlist | sqlite3 -batch -csv $@ ; done
    14 
    15 .PHONY: clean install
    16 
    17 install: system.db
    18 	mkdir -p `dirname $(SYSTEM_DB)`
    19 	cp system.db $(SYSTEM_DB)
    20 
    21 clean:
    22 	rm -f system.db