forked from consensus-shipyard/ipc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (33 loc) · 859 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
.PHONY: all build test lint license check-fmt check-clippy diagrams install-infra clean-infra
all: test build
build:
cargo build --release -p ipc-cli && mkdir -p bin/ && cp target/release/ipc-cli ./bin/ipc-cli
test:
cargo test --release --workspace --exclude ipc_e2e itest
itest:
cargo test -p itest --test checkpoint -- --nocapture
e2e:
cargo test --release -p ipc_e2e
clean:
cargo clean
lint: \
license \
check-fmt \
check-clippy
license:
./scripts/add_license.sh
install-infra:
./scripts/install_infra.sh
clean-infra:
rm -rf ./bin/ipc-infra
check-fmt:
cargo fmt --all --check
check-clippy:
cargo clippy --all --tests -- -D clippy::all
diagrams:
$(MAKE) -C docs/diagrams
check-diagrams: diagrams
if git diff --name-only docs/diagrams | grep .png; then \
echo "There are uncommitted changes to the diagrams"; \
exit 1; \
fi