-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (29 loc) · 1.1 KB
/
Copy pathMakefile
File metadata and controls
38 lines (29 loc) · 1.1 KB
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
.PHONY: check build lint fmt test screencasts screencast-gif docs docs-serve
check:
cargo check --all-features
build:
cargo build --all-features
lint:
cargo clippy --all-features --all-targets -- -D warnings
fmt:
cargo +nightly fmt
test:
cargo nextest run --all-features
# Regenerate the per-scenario casts and the amalgamated wiff-demo.cast from the
# wiff-cast tool. Requires a writable stage (WIFF_CAST_STAGE, default
# /tmp/wiff-cast).
screencasts:
cargo build --release -p wiff
cargo run --release -q -p wiff-cast
# Render the amalgamated cast to a single animated GIF for hosts that cannot play
# a cast, such as the GitHub README. Requires asciinema's `agg`: cargo install
# --locked --git https://github.com/asciinema/agg.
screencast-gif:
@command -v agg >/dev/null || { echo "agg not found; install with: cargo install --locked --git https://github.com/asciinema/agg"; exit 1; }
agg --theme asciinema docs/assets/casts/wiff-demo.cast docs/assets/wiff-demo.gif
# Build the documentation site into ./site.
docs:
rm -rf .zensical site
zensical build --clean
docs-serve:
zensical serve -a 0.0.0.0:8000