2023-11-23 15:00:24 +00:00
|
|
|
|
|
|
|
build:
|
|
|
|
cargo build
|
|
|
|
|
2023-11-24 21:45:44 +00:00
|
|
|
sqlx:
|
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-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
|
|
|
|
$(MAKE) sqlx
|
2023-11-29 13:27:46 +00:00
|
|
|
|
|
|
|
fmt:
|
|
|
|
cargo +nightly fmt
|