generated from SKalt/rust-nix-project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
65 lines (48 loc) · 1.45 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
.PHONY: fuzz
fuzz: cli
(cd internal/reference_oracle && go test -fuzz=.)
fuzz-canonical: cli
(cd internal/fuzz_canonical && go test -fuzz=.)
.PHONY: cli
cli:
cargo build --examples
.PHONY: bench
bench:
cargo bench
.PHONY: test
test:
cargo test
./grammars/digest.diff: \
./grammars/reference.ebnf \
./grammars/oci_digest.ebnf \
./scripts/diff_digest.sh \
./scripts/diff_digest.sh > ./grammars/digest.diff
./grammars/digest_algorithm.diff: \
./grammars/digest.diff \
./scripts/diff_digest_algorithm.sh \
./scripts/diff_digest_algorithm.sh > ./grammars/digest_algorithm.diff
./grammars/digest_encoded.diff: \
./grammars/digest.diff \
./scripts/diff_digest_encoded.sh \
./scripts/diff_digest_encoded.sh > ./grammars/digest_encoded.diff
./grammars/host_subset.ebnf: \
./grammars/reference.ebnf \
./scripts/host_subset.sh \
./scripts/host_subset.sh > ./grammars/host_subset.ebnf
./grammars/host_or_path.ebnf: \
./grammars/reference.ebnf \
./scripts/subset_host_or_path.sh \
./scripts/subset_host_or_path.sh > ./grammars/host_or_path.ebnf
.PHONY: grammars
grammars: \
./grammars/digest.diff \
./grammars/digest_algorithm.diff \
./grammars/digest_encoded.diff \
./grammars/host_subset.ebnf \
./grammars/host_or_path.ebnf \
.PHONY: link-check
link-check:
cargo doc
lychee --exclude=./target/package .
rust-docs:
cargo doc --open