Make Makefile only for database operations

This commit is contained in:
The Magician 2024-05-27 18:33:47 +01:00
parent c107bffd42
commit bf4e7d9a11
1 changed files with 3 additions and 9 deletions

View File

@ -1,11 +1,5 @@
createdb: createdb:
mysql --user=root --password=$(shell pass show sevenkeys/mysql) <sql/createdb.sql mysql --user=root --password=$(shell pass show sevenkeys/mysql) <database/sql/createdb.sql
import: createdb removedb:
go run cmd/importer/main.go
printinglist:
go build -o printinglist cmd/printinglist/main.go
clean:
mysql --user=root --password=$(shell pass show sevenkeys/mysql) <sql/removedb.sql
rm -rf cache/ rm -rf cache/
mysql --user=root --password=$(shell pass show sevenkeys/mysql) <database/sql/removedb.sql