-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
59 lines (47 loc) · 1.09 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
default: build-release
.PHONY: default
build:
$(MAKE) -C contracts
$(MAKE) -C slimchain-tx-engine-tee-enclave DEBUG=1
cargo build
.PHONY: build
build-release:
$(MAKE) -C contracts
$(MAKE) -C slimchain-tx-engine-tee-enclave
cargo build --release
.PHONY: build-release
build-contracts:
$(MAKE) -C contracts
.PHONY: build-contracts
test:
cargo test -- --nocapture
.PHONY: test
test-release:
cargo test --release -- --nocapture
.PHONY: test-release
clean:
-rm -rf target
-$(MAKE) -C contracts clean
-$(MAKE) -C slimchain-tx-engine-tee-enclave clean
.PHONY: clean
clippy:
cargo clippy --all-targets
.PHONY: clippy
cov:
cargo tarpaulin --all-features --workspace --exclude-files 'rust-sgx-sdk/*' -o Html --output-dir target
.PHONY: cov
check-deps:
cargo upgrade --workspace --skip-compatible --dry-run
$(MAKE) -C slimchain-tx-engine-tee-enclave check-deps
.PHONY: check-deps
update-deps:
cargo update
$(MAKE) -C slimchain-tx-engine-tee-enclave update-deps
.PHONY: update-deps
fmt:
cargo fmt
$(MAKE) -C slimchain-tx-engine-tee-enclave fmt
.PHONY: fmt
loc:
tokei -e rust-sgx-sdk
.PHONY: loc