1OUTPUT_DIR = $(DADK_BUILD_CACHE_DIR_DRAGONREACH_0_1_0) 2REACH_ETC_DIR=$(OUTPUT_DIR)/etc/reach 3REACH_BIN_DIR=$(OUTPUT_DIR)/bin/ 4TMP_INSTALL_DIR=$(OUTPUT_DIR)/tmp_install 5 6build: 7 cargo -Z build-std=core,alloc,compiler_builtins build --target ./target.json --release 8 9install: 10 mkdir -p $(TMP_INSTALL_DIR) 11 mkdir -p $(REACH_ETC_DIR) 12 mkdir -p $(REACH_ETC_DIR)/system/ 13 mkdir -p $(REACH_BIN_DIR) 14 15 cp ./parse_test/shell.service $(REACH_ETC_DIR)/system/shell.service 16 17 cargo -Z build-std=core,alloc,compiler_builtins install --target $(TARGET) --path . --root $(TMP_INSTALL_DIR) 18 mv $(OUTPUT_DIR)/tmp/bin/DragonReach $(REACH_BIN_DIR)/DragonReach 19 rm -rf $(TMP_INSTALL_DIR) 20 21build-linux: 22 cargo -Z build-std=core,alloc,compiler_builtins build --target x86_64-unknown-linux-gnu 23 24clean: 25 cargo clean 26