-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·36 lines (30 loc) · 937 Bytes
/
Makefile
File metadata and controls
executable file
·36 lines (30 loc) · 937 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
30
31
32
33
34
35
36
.PHONY: fmt check test commit setup-hooks help
help:
@echo "Intent-Engine Development Commands"
@echo "===================================="
@echo "make fmt - Format code with rustfmt"
@echo "make check - Run format, clippy and tests"
@echo "make test - Run all tests"
@echo "make commit - Format and commit (interactive)"
@echo "make setup-hooks - Install git pre-commit hooks"
@echo ""
@echo "Git hooks will auto-format code before each commit."
fmt:
@echo "Formatting code..."
@cargo fmt --all
@echo "✓ Code formatted"
check: fmt
@echo "Running clippy..."
@cargo clippy --all-targets --all-features -- -D warnings
@echo "Running tests..."
@cargo test
@echo "✓ All checks passed"
test:
@cargo test
commit: fmt
@echo "Code formatted. Ready to commit."
@git status
@echo ""
@echo "Run: git add <files> && git commit -m 'message'"
setup-hooks:
@./scripts/setup-git-hooks.sh