Avoid rare build errors due to partial/interrupted builds
* When copying `target/release/deps/*` into the `build/` folder,
include directories in the `cp` command via the `-r` flag.
* It's not strictly necessary to include these dirs, but it doesn't hurt
and it's an easy way to avoid incremental build errors.
@@ -264,7 +264,7 @@ endif
@rm -rf $(THESEUS_BUILD_TOML)
@cp -f $(CFG_DIR)/$(TARGET).json $(DEPS_BUILD_DIR)/
@mkdir -p $(HOST_DEPS_DIR)
- @cp -f ./target/$(BUILD_MODE)/deps/* $(HOST_DEPS_DIR)/
+ @cp -rf ./target/$(BUILD_MODE)/deps/* $(HOST_DEPS_DIR)/
@echo -e 'target = "$(TARGET)"' >> $(THESEUS_BUILD_TOML)
@echo -e 'sysroot = "./sysroot"' >> $(THESEUS_BUILD_TOML)
@echo -e 'rustflags = "$(RUSTFLAGS)"' >> $(THESEUS_BUILD_TOML)
