-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (30 loc) · 827 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
.PHONY: all
all:help
.PHONY: build # cargo build
build:
RUSTFLAGS="-C link-arg=-s" cargo build --release
.PHONY: fmt # cargo fmt --all
fmt:
cargo +nightly fmt --all
.PHONY: check # cargo check
check:
# cargo +nightly deny check
# cargo +nightly outdated --exit-code 1
# cargo +nightly udeps
# cargo +nightly audit
# cargo +nightly pants
.PHONY: lint # cargo lint
lint:
cargo +nightly clippy --all -- -D warnings
.PHONY: run-dev # run dev node
run-dev:
./target/release/template-node --tmp --dev --rpc-port 9933
.PHONY: test # cargo test
test:
cargo test
.PHONY: benchmark # runtime benchmarks
benchmark:
cargo build --release --features runtime-benchmarks
.PHONY: help # Generate list of targets with descriptions
help:
@grep '^.PHONY: .* #' Makefile | sed 's/\.PHONY: \(.*\) # \(.*\)/\1 \2/' | expand -t20