Skip to content

Commit

Permalink
Improve maintainability of Makefile (#6253)
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane authored Jan 26, 2024
1 parent 1bcd48e commit 4cb5eb2
Showing 1 changed file with 56 additions and 7 deletions.
63 changes: 56 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -248,30 +248,79 @@ fmt:
cargo +nightly fmt

lint-reth:
cargo +nightly clippy --workspace --bin "reth" --lib --examples --tests --benches --features "ethereum $(BIN_OTHER_FEATURES)" -- -D warnings
cargo +nightly clippy \
--workspace \
--bin "reth" \
--lib \
--examples \
--tests \
--benches \
--features "ethereum $(BIN_OTHER_FEATURES)" \
-- -D warnings

lint-op-reth:
cargo +nightly clippy --workspace --bin "op-reth" --lib --examples --tests --benches --features "optimism $(BIN_OTHER_FEATURES)" -- -D warnings
cargo +nightly clippy \
--workspace \
--bin "op-reth" \
--lib \
--examples \
--tests \
--benches \
--features "optimism $(BIN_OTHER_FEATURES)" \
-- -D warnings

lint-other-targets:
cargo +nightly clippy --workspace --lib --examples --tests --benches --all-features -- -D warnings
cargo +nightly clippy \
--workspace \
--lib \
--examples \
--tests \
--benches \
--all-features \
-- -D warnings

lint:
make fmt && \
make lint-reth && \
make lint-op-reth && \
make lint-other-targets

rustdocs:
RUSTDOCFLAGS="--cfg docsrs --show-type-layout --generate-link-to-definition --enable-index-page -Zunstable-options -D warnings" cargo +nightly docs --document-private-items
RUSTDOCFLAGS="\
--cfg docsrs \
--show-type-layout \
--generate-link-to-definition \
--enable-index-page -Zunstable-options -D warnings" \
cargo +nightly docs \
--document-private-items

test-reth:
cargo test --workspace --bin "reth" --lib --examples --tests --benches --features "ethereum $(BIN_OTHER_FEATURES)"
cargo test \
--workspace \
--bin "reth" \
--lib \
--examples \
--tests \
--benches \
--features "ethereum $(BIN_OTHER_FEATURES)"

test-op-reth:
cargo test --workspace --bin "op-reth" --lib --examples --tests --benches --features "optimism $(BIN_OTHER_FEATURES)"
cargo test \
--workspace \
--bin "op-reth" \
--lib --examples \
--tests \
--benches \
--features "optimism $(BIN_OTHER_FEATURES)"

test-other-targets:
cargo test --workspace --lib --examples --tests --benches --all-features
cargo test \
--workspace \
--lib \
--examples \
--tests \
--benches \
--all-features

test:
make test-reth && \
Expand Down

0 comments on commit 4cb5eb2

Please sign in to comment.