-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (26 loc) · 767 Bytes
/
Copy pathMakefile
File metadata and controls
35 lines (26 loc) · 767 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
.PHONY: fmt lint test check release package checksums completions audit
fmt:
cargo fmt --check
lint:
cargo clippy --all-targets --all-features -- -D warnings
test:
cargo test
check: fmt lint test
release:
cargo build --release
package:
cargo package
checksums: release
shasum -a 256 target/release/minecli > target/release/minecli.sha256
completions:
mkdir -p target/completions
cargo run -- completions bash > target/completions/minecli.bash
cargo run -- completions zsh > target/completions/_minecli
cargo run -- completions fish > target/completions/minecli.fish
audit:
@if command -v cargo-audit >/dev/null 2>&1; then \
cargo audit; \
else \
echo "cargo-audit is not installed. Install with: cargo install cargo-audit"; \
exit 1; \
fi