-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (32 loc) · 1.62 KB
/
Copy pathMakefile
File metadata and controls
42 lines (32 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Static Analysis Tools Repository Makefile
.PHONY: render render-skip-deprecated check clippy fmt fmt-check test clean help
# Default target shows help
help:
@echo "Available targets:"
@echo " render - Render README.md and JSON API from YAML sources"
@echo " render-skip-deprecated - Render using cached deprecation data (no GitHub requests)"
@echo " check - Run cargo check"
@echo " clippy - Run clippy lints"
@echo " fmt - Format Rust code"
@echo " fmt-check - Check Rust formatting without changing files"
@echo " test - Run tests"
@echo " clean - Clean build artifacts"
@echo " help - Show this help"
# Main rendering targets
render:
cargo run --manifest-path ci/Cargo.toml --locked -p render -- --tags data/tags.yml --tools data/tools --collections data/collections --md-out README.md --json-out data/api
render-skip-deprecated:
cargo run --manifest-path ci/Cargo.toml --locked -p render -- --tags data/tags.yml --tools data/tools --collections data/collections --md-out README.md --json-out data/api --skip-deprecated
# Development targets
check:
cargo check --manifest-path ci/Cargo.toml --workspace --all-targets --locked
clippy:
cargo clippy --manifest-path ci/Cargo.toml --workspace --all-targets --all-features --locked -- -D warnings
fmt:
cargo fmt --manifest-path ci/Cargo.toml --all
fmt-check:
cargo fmt --manifest-path ci/Cargo.toml --all --check
test:
cargo test --manifest-path ci/Cargo.toml --workspace --all-targets --all-features --locked
clean:
cargo clean --manifest-path ci/Cargo.toml