-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 577 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 577 Bytes
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
.PHONY: hooks fmt clippy test build check sync-docs-changelog
# Install git pre-commit hook
hooks:
@cp scripts/pre-commit .git/hooks/pre-commit
@chmod +x .git/hooks/pre-commit
@echo "Pre-commit hook installed."
# Individual CI-equivalent targets
fmt:
cargo fmt --all
fmt-check:
cargo fmt --all -- --check
clippy:
cargo clippy --workspace --all-targets -- -D warnings
test:
cargo test --workspace
build:
cargo build --workspace --all-targets
# Run all checks (same as CI)
check: fmt-check clippy test
sync-docs-changelog:
python3 scripts/sync-docs-changelog.py