25 lines
453 B
Makefile
25 lines
453 B
Makefile
build:
|
|
./gradlew shadowJar
|
|
|
|
run:
|
|
./gradlew run
|
|
|
|
clean:
|
|
./gradlew clean
|
|
|
|
test:
|
|
./gradlew test
|
|
|
|
dbdump:
|
|
sqlite3 app/krusty.db .dump
|
|
|
|
migrate:
|
|
sqlite3 app/krusty.db < app/Migrations/create-schema.sql
|
|
sqlite3 app/krusty.db < app/Migrations/initial-data.sql
|
|
|
|
GITHASH := $(shell git rev-parse --short HEAD)
|
|
# Tar everything that isnt gitignored
|
|
release:
|
|
git ls-files -z | xargs -0 tar -czf krusty-imbus_$(GITHASH).tar.gz
|
|
|
|
.PHONY: run clean test build
|