p≡p engine FORK
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
622 B

  1. # Copyright 2017, pEp Foundation
  2. # This file is part of pEpEngine
  3. # This file may be used under the terms of the GNU General Public License version 3
  4. # see LICENSE.txt
  5. include ../Makefile.conf
  6. .PHONY: db
  7. db: system.db
  8. DICOS = $(wildcard *.csv)
  9. # The 'mv' keeps a backup db around
  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. .PHONY: install
  15. install: system.db
  16. mkdir -p $(PER_MACHINE_DIRECTORY)
  17. cp system.db $(PER_MACHINE_DIRECTORY)
  18. .PHONY: clean
  19. clean:
  20. rm -f system.db system.db~