Make Makefile only for database operations
This commit is contained in:
parent
c107bffd42
commit
bf4e7d9a11
|
@ -1,11 +1,5 @@
|
|||
createdb:
|
||||
mysql --user=root --password=$(shell pass show sevenkeys/mysql) <sql/createdb.sql
|
||||
import: createdb
|
||||
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
|
||||
mysql --user=root --password=$(shell pass show sevenkeys/mysql) <database/sql/createdb.sql
|
||||
removedb:
|
||||
rm -rf cache/
|
||||
mysql --user=root --password=$(shell pass show sevenkeys/mysql) <database/sql/removedb.sql
|
||||
|
|
Loading…
Reference in New Issue