-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmakefile
executable file
·71 lines (55 loc) · 1012 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
.POSIX:
.SILENT:
.IGNORE: uninstall clean
.PHONY: all \
audit \
doc \
lint \
clippy \
rustfmt \
unmake \
build \
port \
crit \
test \
install \
uninstall \
publish \
clean
BANNER=tinyrick-0.0.14
all: build
test: install
sh -c "cd example && tinyrick -l"
sh -c "cd example && tinyrick -v"
sh -c "cd example && tinyrick -h"
sh -c "cd example && tinyrick"
sh -c "cd example && VERBOSE=1 tinyrick test clippy lint build_debug build_release build doc install unit_test integration_test test banner uninstall clean_cargo clean"
install:
cargo install --force --path .
uninstall:
cargo uninstall tinyrick
audit:
cargo audit
doc:
cargo doc
clippy:
cargo clippy
rustfmt:
cargo fmt
unmake:
unmake .
unmake -n .
lint: doc clippy rustfmt unmake
build: lint test
cargo build --release
publish:
cargo publish
crit:
crit -b $(BANNER)
port: crit
sh -c "cd .crit/bin && tar czf $(BANNER).tgz $(BANNER)"
clean:
crit -c
cargo clean
rm -rf example/target
rm -rf example/Cargo.lock