Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 34 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,38 @@
.PHONY: render
# Static Analysis Tools Repository Makefile

.PHONY: render render-skip-deprecated check clippy fmt 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 without deprecated tools"
@echo " check - Run cargo check"
@echo " clippy - Run clippy lints"
@echo " fmt - Format Rust code"
@echo " test - Run tests"
@echo " clean - Clean build artifacts"
@echo " help - Show this help"

# Main rendering targets
render:
cargo run --manifest-path data/render/Cargo.toml -- --tags data/tags.yml --tools data/tools --md-out README.md --json-out data/api

.PHONY: render-skip-deprecated
render-skip-deprecated:
cargo run --manifest-path data/render/Cargo.toml -- --tags data/tags.yml --tools data/tools --md-out README.md --json-out data/api --skip-deprecated
cargo run --manifest-path data/render/Cargo.toml -- --tags data/tags.yml --tools data/tools --md-out README.md --json-out data/api --skip-deprecated

# Development targets
check:
cargo check --manifest-path data/render/Cargo.toml

clippy:
cargo clippy --manifest-path data/render/Cargo.toml -- -D warnings

fmt:
cargo fmt --manifest-path data/render/Cargo.toml

test:
cargo test --manifest-path data/render/Cargo.toml

clean:
cargo clean --manifest-path data/render/Cargo.toml
Loading
Loading