chore(make): add build/build-op subcommand (#6391)

Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
Delweng
2024-02-05 17:39:07 +08:00
committed by GitHub
parent 2d01f36086
commit 2414707cd7

View File

@ -57,6 +57,14 @@ install-op: ## Build and install the op-reth binary under `~/.cargo/bin`.
--profile "$(PROFILE)" \ --profile "$(PROFILE)" \
$(CARGO_INSTALL_EXTRA_FLAGS) $(CARGO_INSTALL_EXTRA_FLAGS)
.PHONY: build
build: ## Build the reth binary into `target` directory.
$(MAKE) build-native-$(shell rustc -Vv | grep host | cut -d ' ' -f2)
.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)
# Builds the reth binary natively. # Builds the reth binary natively.
build-native-%: build-native-%:
cargo build --bin reth --target $* --features "$(FEATURES)" --profile "$(PROFILE)" cargo build --bin reth --target $* --features "$(FEATURES)" --profile "$(PROFILE)"