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
.PHONY: build test release clean install
# Default target
build:
cargo build
# Run tests
test:
cargo test
# Release - auto-increments patch version, or pass SUPEREGO_VERSION=x.y.z
release:
ifdef SUPEREGO_VERSION
./scripts/release.sh $(SUPEREGO_VERSION)
else
./scripts/release.sh
endif
# Build release binary
build-release:
cargo build --release
# Install locally
install:
cargo install --path .
# Clean build artifacts
clean:
cargo clean
# Run clippy
lint:
cargo clippy
# Check hooks are up to date
check:
cargo run -- check