1*236b9b4fSLoGinexport RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static 2*236b9b4fSLoGinexport RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup 3*236b9b4fSLoGin 417ae4661SGnoCiYeHOUTPUT_DIR = $(DADK_BUILD_CACHE_DIR_DRAGONREACH_0_1_0) 5ea330323SLoGinREACH_ETC_DIR=$(OUTPUT_DIR)/etc/reach 6ea330323SLoGinREACH_BIN_DIR=$(OUTPUT_DIR)/bin/ 7ea330323SLoGinTMP_INSTALL_DIR=$(OUTPUT_DIR)/tmp_install 817ae4661SGnoCiYeH 9*236b9b4fSLoGinall: build 10*236b9b4fSLoGin 114e851715SGnoCiYeHbuild: 12*236b9b4fSLoGin cargo -Z build-std=core,alloc,compiler_builtins build --target ./x86_64-unknown-dragonos.json --release 134e851715SGnoCiYeH 144e851715SGnoCiYeHinstall: 15ea330323SLoGin mkdir -p $(TMP_INSTALL_DIR) 16ea330323SLoGin mkdir -p $(REACH_ETC_DIR) 17ea330323SLoGin mkdir -p $(REACH_ETC_DIR)/system/ 18ea330323SLoGin mkdir -p $(REACH_BIN_DIR) 1917ae4661SGnoCiYeH 20ea330323SLoGin cp ./parse_test/shell.service $(REACH_ETC_DIR)/system/shell.service 21ea330323SLoGin 22ea330323SLoGin cargo -Z build-std=core,alloc,compiler_builtins install --target $(TARGET) --path . --root $(TMP_INSTALL_DIR) 23ea330323SLoGin mv $(OUTPUT_DIR)/tmp/bin/DragonReach $(REACH_BIN_DIR)/DragonReach 24ea330323SLoGin rm -rf $(TMP_INSTALL_DIR) 254e851715SGnoCiYeH 264e851715SGnoCiYeHbuild-linux: 274e851715SGnoCiYeH cargo -Z build-std=core,alloc,compiler_builtins build --target x86_64-unknown-linux-gnu 287ae82d4aSGnoCiYeH 297ae82d4aSGnoCiYeHclean: 307ae82d4aSGnoCiYeH cargo clean 31*236b9b4fSLoGin 32*236b9b4fSLoGin 33*236b9b4fSLoGinfmt: 34*236b9b4fSLoGin cargo fmt 35*236b9b4fSLoGin 36*236b9b4fSLoGinfmt-check: 37*236b9b4fSLoGin cargo fmt --check 38*236b9b4fSLoGin 39*236b9b4fSLoGincheck: 40*236b9b4fSLoGin cargo -Z build-std=core,alloc,compiler_builtins check --workspace --message-format=json --target ./x86_64-unknown-dragonos.json 41