-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (32 loc) · 892 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
.PHONY: build check run test clean
build:
cargo build
check:
cargo fmt --check
cargo clippy --tests -- -D clippy::all
run:
cargo run help
file_path := dice.png
chunk_type := ruSt
message := "This is a secret message!"
test: $(file_path)
@ \
echo cargo run print $(file_path) && \
cargo run print $(file_path) && \
echo && \
echo cargo run encode $(file_path) $(chunk_type) \"$(message)\" && \
cargo run encode $(file_path) $(chunk_type) $(message) && \
echo && \
echo cargo run decode $(file_path) $(chunk_type) && \
cargo run decode $(file_path) $(chunk_type) && \
echo && \
echo cargo run print $(file_path) && \
cargo run print $(file_path) && \
echo && \
echo cargo run remove $(file_path) $(chunk_type) && \
cargo run remove $(file_path) $(chunk_type) && \
echo && \
echo cargo run print $(file_path) && \
cargo run print $(file_path)
clean:
cargo clean