fix(make): use the default rust dir for build/build-op (#8259)

Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
Delweng
2024-05-18 23:59:00 +08:00
committed by GitHub
parent ac0a005dd0
commit 69223307fe

View File

@ -59,11 +59,11 @@ install-op: ## Build and install the op-reth binary under `~/.cargo/bin`.
.PHONY: build
build: ## Build the reth binary into `target` directory.
$(MAKE) build-native-$(shell rustc -Vv | grep host | cut -d ' ' -f2)
cargo build --bin reth --features "$(FEATURES)" --profile "$(PROFILE)"
.PHONY: build-op
build-op: ## Build the op-reth binary into `target` directory.
$(MAKE) op-build-native-$(shell rustc -Vv | grep host | cut -d ' ' -f2)
cargo build --bin op-reth --features "optimism,$(FEATURES)" --profile "$(PROFILE)"
# Builds the reth binary natively.
build-native-%:
@ -303,8 +303,7 @@ db-tools: ## Compile MDBX debugging tools.
@echo "Run \"$(DB_TOOLS_DIR)/mdbx_chk\" for the MDBX db file integrity check."
.PHONY: update-book-cli
update-book-cli: ## Update book cli documentation.
cargo build --bin reth --features "$(FEATURES)" --profile "$(PROFILE)"
update-book-cli: build ## Update book cli documentation.
@echo "Updating book cli doc..."
@./book/cli/update.sh $(BUILD_PATH)/$(PROFILE)/reth