chore(Makefile): separate features by spaces only (#11393)

This commit is contained in:
Dan Cline
2024-10-01 18:20:26 -04:00
committed by GitHub
parent 408d793bfd
commit 7e4b1bff7a

View File

@ -53,7 +53,7 @@ install: ## Build and install the reth binary under `~/.cargo/bin`.
.PHONY: install-op .PHONY: install-op
install-op: ## Build and install the op-reth binary under `~/.cargo/bin`. install-op: ## Build and install the op-reth binary under `~/.cargo/bin`.
cargo install --path crates/optimism/bin --bin op-reth --force --locked \ cargo install --path crates/optimism/bin --bin op-reth --force --locked \
--features "optimism,$(FEATURES)" \ --features "optimism $(FEATURES)" \
--profile "$(PROFILE)" \ --profile "$(PROFILE)" \
$(CARGO_INSTALL_EXTRA_FLAGS) $(CARGO_INSTALL_EXTRA_FLAGS)
@ -67,14 +67,14 @@ build-debug: ## Build the reth binary into `target/debug` directory.
.PHONY: build-op .PHONY: build-op
build-op: ## Build the op-reth binary into `target` directory. build-op: ## Build the op-reth binary into `target` directory.
cargo build --bin op-reth --features "optimism,$(FEATURES)" --profile "$(PROFILE)" --manifest-path crates/optimism/bin/Cargo.toml cargo build --bin op-reth --features "optimism $(FEATURES)" --profile "$(PROFILE)" --manifest-path crates/optimism/bin/Cargo.toml
# 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)"
op-build-native-%: op-build-native-%:
cargo build --bin op-reth --target $* --features "optimism,$(FEATURES)" --profile "$(PROFILE)" --manifest-path crates/optimism/bin/Cargo.toml cargo build --bin op-reth --target $* --features "optimism $(FEATURES)" --profile "$(PROFILE)" --manifest-path crates/optimism/bin/Cargo.toml
# The following commands use `cross` to build a cross-compile. # The following commands use `cross` to build a cross-compile.
# #
@ -106,7 +106,7 @@ build-%:
op-build-%: op-build-%:
RUSTFLAGS="-C link-arg=-lgcc -Clink-arg=-static-libgcc" \ RUSTFLAGS="-C link-arg=-lgcc -Clink-arg=-static-libgcc" \
cross build --bin op-reth --target $* --features "optimism,$(FEATURES)" --profile "$(PROFILE)" --manifest-path crates/optimism/bin/Cargo.toml cross build --bin op-reth --target $* --features "optimism $(FEATURES)" --profile "$(PROFILE)" --manifest-path crates/optimism/bin/Cargo.toml
# Unfortunately we can't easily use cross to build for Darwin because of licensing issues. # Unfortunately we can't easily use cross to build for Darwin because of licensing issues.
# If we wanted to, we would need to build a custom Docker image with the SDK available. # If we wanted to, we would need to build a custom Docker image with the SDK available.