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
|
|
|
|
2024-04-30 08:38:13 +00:00
|
|
|
emgauwa-controller.json: controller.pkl
|
2024-02-18 18:50:22 +00:00
|
|
|
pkl eval -f json -o $@ $<
|
2023-12-04 22:59:26 +00:00
|
|
|
|
2024-04-30 08:38:13 +00:00
|
|
|
config:
|
2024-03-04 15:09:03 +00:00
|
|
|
$(MAKE) emgauwa-controller.json
|
2024-03-28 02:19:15 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f emgauwa-controller.json
|
|
|
|
rm -f emgauwa-controller.sqlite
|
2024-04-29 16:32:16 +00:00
|
|
|
|
|
|
|
emgauwa-controller_%:
|
2024-05-10 11:50:07 +00:00
|
|
|
$(TOOL) build --target $* --release
|
2024-04-29 16:32:16 +00:00
|
|
|
mkdir -p out/releases
|
|
|
|
cp target/$*/release/emgauwa-controller out/releases/emgauwa-controller_$*
|
|
|
|
|
|
|
|
releases:
|
2024-04-30 08:38:13 +00:00
|
|
|
$(MAKE) TOOL=cross emgauwa-controller_arm-unknown-linux-gnueabihf
|
|
|
|
$(MAKE) TOOL=cargo emgauwa-controller_x86_64-unknown-linux-gnu
|
|
|
|
$(MAKE) TOOL=cross emgauwa-controller_x86_64-unknown-linux-musl
|
2024-04-29 16:32:16 +00:00
|
|
|
|