db/Makefile
changeset 1989 d3e5bc4a9854
parent 1988 ea7bceda4dc8
child 1993 efaeadf3e6f0
     1.1 --- a/db/Makefile	Tue Aug 22 15:34:17 2017 +0200
     1.2 +++ b/db/Makefile	Tue Aug 22 15:57:25 2017 +0200
     1.3 @@ -1,26 +1,22 @@
     1.4 -# Copyright 2017, pEp Foundation
     1.5 -# This file is part of pEpEngine
     1.6 -# This file may be used under the terms of the GNU General Public License version 3
     1.7 +# This file is under GNU General Public License 3.0
     1.8  # see LICENSE.txt
     1.9  
    1.10  include ../Makefile.conf
    1.11  
    1.12 -.PHONY: db
    1.13  db: system.db
    1.14  
    1.15 -DICOS = $(wildcard *.csv)
    1.16 +dicos=$(wildcard *.csv)
    1.17  
    1.18 -# The 'mv' keeps a backup db around
    1.19 -system.db: create_system_db.sql $(DICOS)
    1.20 +system.db: create_system_db.sql $(dicos)
    1.21  	-mv -f $@ $@~ 
    1.22  	sqlite3 -batch $@ < $<
    1.23 -	for c in $(DICOS) ; do echo "$$c" ; echo .import "$$c" wordlist | sqlite3 -batch -csv $@ ; done
    1.24 +	for c in $(dicos); do echo $$c ; echo .import "$$c" wordlist | sqlite3 -batch -csv $@ ; done
    1.25  
    1.26 -.PHONY: install
    1.27 +.PHONY: clean install
    1.28 +
    1.29  install: system.db
    1.30  	mkdir -p `dirname $(SYSTEM_DB)`
    1.31  	cp system.db $(SYSTEM_DB)
    1.32  
    1.33 -.PHONY: clean
    1.34  clean:
    1.35 -	rm -f system.db system.db~
    1.36 +	rm -f system.db