core/Makefile
Tobias Reisinger b742f0f8d6
Some checks failed
/ build-artifacts (arm-unknown-linux-gnueabihf) (push) Failing after 9m27s
Split project (keep core)
2024-04-30 10:38:01 +02:00

23 lines
563 B
Makefile

build-rpi:
cross build --target arm-unknown-linux-gnueabihf
emgauwa-core.json: core.pkl
pkl eval -f json -o $@ $<
config:
$(MAKE) emgauwa-core.json
clean:
rm -f emgauwa-core.json
rm -f emgauwa-core.sqlite
emgauwa-core_%:
$(TOOL) build --target $* --release --bin emgauwa-core
mkdir -p out/releases
cp target/$*/release/emgauwa-core out/releases/emgauwa-core_$*
releases:
$(MAKE) TOOL=cross emgauwa-core_arm-unknown-linux-gnueabihf
$(MAKE) TOOL=cargo emgauwa-core_x86_64-unknown-linux-gnu
$(MAKE) TOOL=cross emgauwa-core_x86_64-unknown-linux-musl