-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
65 lines (58 loc) · 1.6 KB
/
Makefile
File metadata and controls
65 lines (58 loc) · 1.6 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
all:
@echo "Make All"
build:
cargo build
node:
cargo build --package $(call pkgid, litentry-node)
runtime:
cargo build --package $(call pkgid, litentry-runtime)
offchain-worker:
cargo build --package $(call pkgid, pallet-offchain-worker)
account-linker:
cargo build --package $(call pkgid, pallet-account-linker)
litentry-token-server:
cargo build --package $(call pkgid, litentry-token-server)
test-node:
cargo test --package $(call pkgid, litentry-node)
test-runtime:
cargo test --package $(call pkgid, litentry-runtime)
test-account-linker:
cargo test --package $(call pkgid, pallet-account-linker)
test-offchain-worker:
cargo test --package $(call pkgid, pallet-offchain-worker)
test-litentry-token-server:
cargo test --package $(call pkgid, litentry-token-server)
test:
cargo test
# benchmark build
build-benchmark:
cd node; cargo build --features runtime-benchmarks --release
benchmark-account-linker:
target/release/litentry-node benchmark \
--chain=dev \
--execution=wasm \
--wasm-execution=compiled \
--pallet=pallet_account_linker \
--extrinsic=* \
--heap-pages=4096 \
--steps=20 \
--repeat=50 \
--output=./pallets/account-linker/src/weights.rs \
--template=./.maintain/frame-weight-template.hbs
benchmark-offchain-worker:
target/release/litentry-node benchmark \
--chain=dev \
--execution=wasm \
--wasm-execution=compiled \
--pallet=pallet_offchain_worker \
--extrinsic=* \
--heap-pages=4096 \
--steps=20 \
--repeat=50 \
--output=./pallets/offchain-worker/src/weights.rs \
--template=./.maintain/frame-weight-template.hbs
fmt:
cargo fmt
define pkgid
$(shell cargo pkgid $1)
endef