mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(make): add build/build-op subcommand (#6391)
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
8
Makefile
8
Makefile
@ -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)"
|
||||||
|
|||||||
Reference in New Issue
Block a user