Browse Source

db/Makefile : rename old db before creating new db, add csv files as dependencies

async_key_management
Edouard Tisserant 7 years ago
parent
commit
739ba1ca0a
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      db/Makefile

+ 5
- 2
db/Makefile View File

@ -2,9 +2,12 @@ include ../Makefile.conf
db: system.db
system.db: create_system_db.sql
dicos=$(wildcard *.csv)
system.db: create_system_db.sql $(dicos)
-mv -f $@ $@~
sqlite3 -batch $@ < $<
for c in *.csv ; do echo $$c ; echo .import "$$c" wordlist | sqlite3 -batch -csv $@ ; done
for c in $(dicos); do echo $$c ; echo .import "$$c" wordlist | sqlite3 -batch -csv $@ ; done
.PHONY: clean install


Loading…
Cancel
Save