-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
84 lines (54 loc) · 1.38 KB
/
Makefile
File metadata and controls
84 lines (54 loc) · 1.38 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
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
.PHONY: build c-build wasm-build \
test core-test hasher-test http-test web3-test c-test wasm-test go-test js-test php-test \
fmt fmt-rust fmt-go fmt-js fmt-php \
lint clippy lint-js lint-go \
clean clean-rust clean-wasm-api clean-go clean-js
bridge-build:
$(MAKE) -C bloock-bridge build
rust-test: libs-test core-test bridge-test
bridge-test:
$(MAKE) -C bloock-bridge test
core-test:
$(MAKE) -C bloock-core test
libs-test:
$(MAKE) -C bloock-libs test
go-test: c-build
$(MAKE) -C languages/go test
js-test: wasm-build
$(MAKE) -C languages/js test
php-test: c-build
$(MAKE) -C languages/php test
go-dev: c-build
$(MAKE) -C bloock-bridge go-dev
js-dev: wasm-build
$(MAKE) -C bloock-bridge js-dev
php-dev: c-build
$(MAKE) -C bloock-bridge php-dev
fmt: fmt-rust fmt-js fmt-go fmt-php
fmt-rust:
cargo fmt
fmt-go:
$(MAKE) -C languages/go fmt
fmt-js:
$(MAKE) -C languages/js fmt
fmt-php:
$(MAKE) -C languages/php fmt
lint: clippy lint-js lint-go lint-php lint-rust
$(MAKE) fmt
clippy:
cargo clippy --all-features --all-targets -- -D warnings
lint-js:
$(MAKE) -C languages/js lint
lint-go:
$(MAKE) -C languages/go lint
lint-php:
$(MAKE) -C languages/php lint
clean: clean-rust clean-wasm-api clean-go clean-js
clean-rust:
cargo clean
clean-wasm-api:
$(MAKE) -C bloock-wasm-api clean
clean-go:
$(MAKE) -C languages/go clean
clean-js:
$(MAKE) -C languages/js clean