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
BINARY := iris
PREFIX ?= $(HOME)/.local
BINDIR := $(PREFIX)/bin
ARGS ?=
.PHONY: build release run install update uninstall clean check test fmt lint
build:
cargo build
release:
cargo build --release
run:
cargo run -- $(ARGS)
install: release
install -Dm755 target/release/$(BINARY) $(BINDIR)/$(BINARY)
update:
git pull --ff-only
$(MAKE) install
uninstall:
rm -f $(BINDIR)/$(BINARY)
clean:
cargo clean
check:
cargo check
test:
cargo test --all-features --locked
fmt:
cargo fmt --all
lint:
cargo clippy --all-targets --all-features -- -D warnings