23 lines
401 B
Makefile
23 lines
401 B
Makefile
|
|
build:
|
|
cargo build
|
|
|
|
sqlx-prepare:
|
|
rm ./emgauwa-dev.sqlite || true
|
|
cargo sqlx database create
|
|
cargo sqlx migrate run
|
|
|
|
sqlx: sqlx-prepare
|
|
cargo sqlx prepare --workspace
|
|
|
|
build-rpi:
|
|
cross build --target arm-unknown-linux-gnueabihf
|
|
|
|
clean-db:
|
|
rm ./emgauwa-dev.sqlite || true
|
|
rm ./emgauwa-core.sqlite || true
|
|
rm ./emgauwa-controller.sqlite || true
|
|
$(MAKE) sqlx-prepare
|
|
|
|
fmt:
|
|
cargo +nightly fmt
|