-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
47 lines (37 loc) · 1013 Bytes
/
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
CARGO = CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse RUSTFLAGS="--cfg tokio_unstable -D warnings" cargo
.PHONY: all
all: build check-fmt check-clippy test
.PHONY: test
test: update
# Test with default features
${CARGO} test --locked
# Test with all features
${CARGO} test --locked --all-features
# Test without default features
${CARGO} test --locked --no-default-features
.PHONY: check-fmt
check-fmt:
cargo fmt --all -- --check
.PHONY: update
update:
${CARGO} update
.PHONY: check-clippy
check-clippy:
# Check with default features
${CARGO} clippy --workspace
# Check with all features
${CARGO} clippy --workspace --all-features
.PHONY: build
build: runner operator
.PHONY: runner
runner:
${CARGO} build --bin keramik-runner --release --locked --config net.git-fetch-with-cli=true
.PHONY: operator
operator:
${CARGO} build --bin keramik-operator --release --locked --config net.git-fetch-with-cli=true
.PHONY: book
book:
mdbook build
.PHONY: book-serve
book-serve:
mdbook serve --open