-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
49 lines (37 loc) · 1.04 KB
/
Makefile
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
46
47
48
49
all: fmt build clippy doc test
check: check-fmt build clippy doc test
fmt:
cargo fmt --all
check-fmt:
$(if ${CI}, @echo "::group::Check fmt")
cargo fmt --all -- --check
$(if ${CI}, @echo "::endgroup::")
clippy:
$(if ${CI}, @echo "::group::Clippy")
cargo clippy --workspace --all-targets
$(if ${CI}, @echo "::endgroup::")
doc:
$(if ${CI}, @echo "::group::Docs")
cargo doc --workspace --document-private-items
$(if ${CI}, @echo "::endgroup::")
build:
$(if ${CI}, @echo "::group::Build")
cargo build --workspace --all-targets
$(if ${CI}, @echo "::endgroup::")
test:
$(if ${CI}, @echo "::group::Test")
cargo test --workspace --all-targets
$(if ${CI}, @echo "::endgroup::")
bench:
cargo bench --workspace --all-targets
.PHONY: all check fmt check-fmt clippy doc build test bench plots plots-quick cogsci-table clean
plots: harness/scripts/plot.py
mkdir -p harness/plots
$^
plots-quick: harness/scripts/plot.py
mkdir -p harness/plots
$^ physics
cogsci-table: harness/scripts/cogsci-table.py
$^
clean:
rm -rf harness/data_gen/cache/