workspace/Makefile

27 lines
926 B
Makefile

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
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