diff --git a/Makefile b/Makefile index ada2149b8..a6a385a13 100644 --- a/Makefile +++ b/Makefile @@ -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