-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (30 loc) · 850 Bytes
/
Makefile
File metadata and controls
40 lines (30 loc) · 850 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
bench_output := target/criterion
version := $(egrep '^version.*=.*' Cargo.toml | egrep -o "\d+\.\d+\.\d+")
.PHONY: all bench buildci buildrelease clean install cov publish
all: buildrelease
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
buildrelease: builddev
make -C book/
make -j 5 -C release/
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