Make Makefile only for database operations
This commit is contained in:
parent
c107bffd42
commit
bf4e7d9a11
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue