-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
53 lines (36 loc) · 809 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
all: check build test
todos:
rg --vimgrep -g '!Makefile' -i todo
check:
cargo check
build:
cargo build
test:
cargo test --all --no-fail-fast
cargo run --example human_failed_output
docs: man
man:
$(MAKE) -C docs
release: release-bump all
git commit -am "Bump to version $$(cargo read-manifest | jq .version)"
git tag v$$(cargo read-manifest | jq -r .version)
release-bump:
cargo bump
publish:
git push && git push --tags
install:
cargo install --force
clippy:
cargo +nightly clippy
fmt:
cargo +nightly fmt
duplicate_libs:
cargo tree -d
_update-clippy_n_fmt:
rustup update
rustup component add clippy-preview --toolchain=nightly
rustup component add rustfmt-preview --toolchain=nightly
_cargo_install:
cargo install -f cargo-tree
cargo install -f cargo-bump
.PHONY: tests