workspace/Makefile

34 lines
1.1 KiB
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
2024-05-02 22:46:11 +00:00
git-clone-http:
2024-04-30 07:36:32 +00:00
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
2024-05-02 22:46:11 +00:00
git-clone-ssh:
2024-04-30 07:36:32 +00:00
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
2024-05-02 22:46:11 +00:00
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
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