-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (23 loc) · 794 Bytes
/
Makefile
File metadata and controls
33 lines (23 loc) · 794 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
.PHONY: help fmt clippy test build clean dev
help: ## Show this help message
@echo "JetCrab Development Commands:"
@echo ""
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'
fmt: ## Format code with rustfmt
cargo fmt --all
clippy: ## Run clippy linter
cargo clippy --all-targets --all-features -- -D warnings
test: ## Run tests
cargo test
build: ## Build the project
cargo build
clean: ## Clean build artifacts
cargo clean
dev: fmt clippy test build ## Run all development checks
check: ## Run fmt check and clippy
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
bench: ## Run benchmarks
cargo bench
doc: ## Generate documentation
cargo doc --open