workspace/Makefile

33 lines
1.1 KiB
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
git-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
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
git-status:
@printf "===== COMMON =====\n" && cd common && git status
@printf "\n\n===== CORE =====\n" && cd core && git status
@printf "\n\n===== CONTROLLER =====\n" && cd controller && git status
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