-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
30 lines (25 loc) · 1 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
rust_default_toolchain = 1.73
rust_fmt_toolchain = nightly-2021-06-09
cargo_default = cargo +$(rust_default_toolchain)
cargo_fmt = cargo +$(rust_fmt_toolchain)
# Make default target to nothing.
.PHONY: default
default:
.PHONY: fmt
fmt:
$(cargo_fmt) fmt
$(cargo_fmt) fmt --manifest-path=./tools/query-account/Cargo.toml
$(cargo_fmt) fmt --manifest-path=./tools/transfer-client/Cargo.toml
$(cargo_fmt) fmt --manifest-path=./tools/transfer-client-direct/Cargo.toml
.PHONY: build
build:
$(cargo_default) build
$(cargo_default) build --manifest-path=./tools/query-account/Cargo.toml
$(cargo_default) build --manifest-path=./tools/transfer-client/Cargo.toml
$(cargo_default) build --manifest-path=./tools/transfer-client-direct/Cargo.toml
.PHONY: clippy
clippy:
$(cargo_default) clippy
$(cargo_default) clippy --manifest-path=./tools/query-account/Cargo.toml
$(cargo_default) clippy --manifest-path=./tools/transfer-client/Cargo.toml
$(cargo_default) clippy --manifest-path=./tools/transfer-client-direct/Cargo.toml