workspace/Makefile

28 lines
926 B
Makefile
Raw Normal View History

2024-04-30 07:36:32 +00:00
configs:
$(MAKE) -C core config
ln -s core/emgauwa-core.json emgauwa-core.json
$(MAKE) -C controller config
ln -s controller/emgauwa-controller.json emgauwa-controller.json
clone-http:
git clone https://git.serguzim.me/emgauwa/common.git
git clone https://git.serguzim.me/emgauwa/core.git
git clone https://git.serguzim.me/emgauwa/controller.git
clone-ssh:
git clone git@git.serguzim.me:emgauwa/common.git
git clone git@git.serguzim.me:emgauwa/core.git
git clone git@git.serguzim.me:emgauwa/controller.git
2024-05-01 11:56:05 +00:00
emgauwa-core_%:
$(TOOL) build --target $* --release
mkdir -p out/releases
cp target/$*/release/emgauwa-core out/releases/emgauwa-core_$*
cp target/$*/release/emgauwa-controller out/releases/emgauwa-controller_$*
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