-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
37 lines (25 loc) · 867 Bytes
/
Makefile
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
37
.PHONY = test check lint run help
.DEFAULT_GOAL = help
test: ## Run the unit tests
RUST_BACKTRACE=1 cargo test
lint: ## Check for clippy warnings
cargo clippy --all-targets --all-features -- -D warnings
target/debug/bo:
cargo build
target/release/bo:
cargo build --release
run: target/debug/bo ## Run bo in debug mode
target/debug/bo
run-release: target/release/bo ## Run bo in release mode
target/release/bo
check: ## Check local package and dependencies
cargo check
release: ## Build a release binary
cargo build --release
debug: ## Build bo in debug mode
cargo build
ci: lint check test ## Run all checks run by the CI
cov: ## Measure code coverage
./scripts/cov.sh
help: ## Display help
@grep -E '^[%a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?##"}; {printf "\033[36m%-22s\033[0m %s\n", $$1, $$2}'