core/Makefile
Tobias Reisinger b2ff632e64
Improve config system
Add pkl to generate configs
2024-02-18 19:50:22 +01:00

15 lines
373 B
Makefile

sqlx:
cargo sqlx database drop
cargo sqlx database create
cargo sqlx migrate run
cargo sqlx prepare --workspace
build-rpi:
cross build --target arm-unknown-linux-gnueabihf
_local/emgauwa-%.json: config/emgauwa-%.pkl config/lib/%.pkl config/lib/common.pkl
pkl eval -f json -o $@ $<
configs:
$(MAKE) _local/emgauwa-core.json
$(MAKE) _local/emgauwa-controller.json