Makefile 600 B

123456789101112131415161718
  1. OUTPUT_DIR = $(DADK_BUILD_CACHE_DIR_DRAGONREACH_0_1_0)
  2. build:
  3. cargo -Z build-std=core,alloc,compiler_builtins build --target ./target.json
  4. install:
  5. cp ./parse_test/shell.service $(ROOT_PATH)/bin/sysroot/etc/reach/system/shell.service
  6. mkdir -p $(OUTPUT_DIR)/tmp
  7. cargo -Z build-std=core,alloc,compiler_builtins install --target $(TARGET) --path . --root $(OUTPUT_DIR)/tmp
  8. mv $(OUTPUT_DIR)/tmp/bin/DragonReach $(ROOT_PATH)/bin/user/DragonReach
  9. rm -rf $(OUTPUT_DIR)/tmp
  10. build-linux:
  11. cargo -Z build-std=core,alloc,compiler_builtins build --target x86_64-unknown-linux-gnu
  12. clean:
  13. cargo clean