-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
36 lines (25 loc) · 744 Bytes
/
makefile
File metadata and controls
36 lines (25 loc) · 744 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
all: buildall run test fmt lint
# Note that 'make help' needs the '## <stuff>' to parse commands
build: ## main build fn
cargo build --lib
buildall:
cargo build
run: ## run binary
cargo run
test: ## run tests
cargo test
fmt: ## format code but don't lint
cargo fmt
coverage: ## coverage via tarpaulin
# cargo llvm-coverage
cargo tarpaulin
lint: ## lint code but don't format
cargo clippy
doc: ## Render docs
cargo doc
open: ## Open documentation in local browser
cargo doc --open
kill: ## kill YouCompleteMe rust-analyzer
@pkill -f bin/rust-analyzer || true
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'