24 lines
388 B
Makefile
24 lines
388 B
Makefile
|
|
build:
|
|
cargo build
|
|
|
|
sqlx-prepare:
|
|
rm -f ./emgauwa-dev.sqlite
|
|
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-*.sqlite || true
|
|
$(MAKE) sqlx-prepare
|
|
|
|
format:
|
|
cargo +nightly fmt
|
|
|
|
lint:
|
|
cargo clippy --all-targets --all-features -- -D warnings
|