core/Makefile

23 lines
544 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
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