-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (34 loc) · 920 Bytes
/
Makefile
File metadata and controls
45 lines (34 loc) · 920 Bytes
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
.PHONY: build release install test check clean fmt lint benchmark version
BENCH_REPO_PATH ?=
BENCH_REPO_URL ?= https://github.com/git/git.git
BENCH_REPO_DIR ?= /tmp/trigrep-bench/git
BENCH_RUNS ?= 5
BENCH_WARMUP ?= 1
BENCH_OUT ?= /tmp/trigrep-bench/benchmark.md
build:
cargo build --workspace
release:
cargo build --workspace --release
install: release
cp target/release/trigrep ~/.cargo/bin/trigrep
test:
cargo test --workspace
check:
cargo check --workspace
fmt:
cargo fmt --all
lint:
cargo clippy --workspace -- -D warnings
clean:
cargo clean
rm -rf .trigrep/
benchmark: release
BENCH_REPO_PATH="$(BENCH_REPO_PATH)" \
BENCH_REPO_URL="$(BENCH_REPO_URL)" \
BENCH_REPO_DIR="$(BENCH_REPO_DIR)" \
BENCH_RUNS="$(BENCH_RUNS)" \
BENCH_WARMUP="$(BENCH_WARMUP)" \
BENCH_OUT="$(BENCH_OUT)" \
./scripts/benchmark.sh
version:
NEW_VERSION="$(NEW_VERSION)" VERSION="$(VERSION)" ./scripts/bump-version.sh