controller/Makefile

24 lines
635 B
Makefile
Raw Normal View History

build-rpi:
cross build --target arm-unknown-linux-gnueabihf
2024-04-30 08:38:13 +00:00
emgauwa-controller.json: controller.pkl
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_%:
$(TOOL) build --target $* --release --bin emgauwa-controller
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