-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 771 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (27 loc) · 771 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
bench_output := target/criterion
version := $(egrep '^version.*=.*' Cargo.toml | egrep -o "\d+\.\d+\.\d+")
.PHONY: all bench buildci clean install cov publish
all: builddev
builddev:
cargo doc --lib
cargo clippy -- -D warnings
cargo fmt --all -- --check
cargo test
buildci:
cargo clippy --workspace -- -D warnings
cargo fmt --all -- --check
cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
bench:
RUST_BACKTRACE=1 cargo bench --bench eval_fill -- --profile-time=5
open $(bench_output)/report/index.html
open $(bench_output)/eval_fill/profile/flamegraph.svg
install:
cargo install --path .
clean:
cargo clean
cov:
cargo llvm-cov
publish: builddev
cargo publish
git tag -as v${version} -m "${version}"
make -C csvp/ publish