2023-11-23 15:00:24 +00:00
|
|
|
|
|
|
|
build:
|
|
|
|
cargo build
|
|
|
|
|
2023-11-29 23:57:03 +00:00
|
|
|
sqlx-prepare:
|
2023-11-27 23:19:15 +00:00
|
|
|
rm ./emgauwa-dev.sqlite || true
|
2023-11-23 15:00:24 +00:00
|
|
|
cargo sqlx database create
|
|
|
|
cargo sqlx migrate run
|
2023-11-29 23:57:03 +00:00
|
|
|
|
|
|
|
sqlx: sqlx-prepare
|
2023-11-24 21:45:44 +00:00
|
|
|
cargo sqlx prepare --workspace
|
2023-11-23 15:00:24 +00:00
|
|
|
|
|
|
|
build-rpi:
|
|
|
|
cross build --target arm-unknown-linux-gnueabihf
|
2023-11-27 23:19:15 +00:00
|
|
|
|
|
|
|
clean-db:
|
|
|
|
rm ./emgauwa-dev.sqlite || true
|
|
|
|
rm ./emgauwa-core.sqlite || true
|
|
|
|
rm ./emgauwa-controller.sqlite || true
|
2023-11-29 23:57:03 +00:00
|
|
|
$(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
|