common/Makefile

27 lines
469 B
Makefile
Raw Normal View History

build:
cargo build
sqlx-prepare:
rm ./emgauwa-dev.sqlite || true
cargo sqlx database create
cargo sqlx migrate run
sqlx: sqlx-prepare
2023-11-24 21:45:44 +00:00
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
2023-11-29 13:27:46 +00:00
2023-12-04 22:59:26 +00:00
format:
2023-11-29 13:27:46 +00:00
cargo +nightly fmt
2023-12-04 22:59:26 +00:00
lint:
cargo clippy --all-targets --all-features -- -D warnings