db/Makefile
author Krista Bennett <krista@pep-project.org>
Wed, 14 Jun 2017 18:52:55 +0200
branchENGINE-215
changeset 1856 99348d336639
parent 1513 e7f7e42385b5
child 1952 4722b371f609
child 1988 ea7bceda4dc8
permissions -rw-r--r--
ENGINE-215: needs to be tested, test cases impacted by the change need to be adjusted
     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