forked from AcalaNetwork/Acala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
69 lines (46 loc) · 1.32 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
60
61
62
63
64
65
66
67
68
69
run: githooks
SKIP_WASM_BUILD= cargo run -- --dev -lruntime=debug --instant-sealing
toolchain:
./scripts/init.sh
build-full: githooks
cargo build
check: githooks
SKIP_WASM_BUILD= cargo check
check-tests: githooks
SKIP_WASM_BUILD= cargo check --tests --all
check-all-runtime:
SKIP_WASM_BUILD= cargo check --tests --all --features with-all-runtime
check-debug:
RUSTFLAGS="-Z macro-backtrace" SKIP_WASM_BUILD= cargo +nightly check
test: githooks
SKIP_WASM_BUILD= cargo test --all
test-all-runtime:
SKIP_WASM_BUILD= cargo test --all --features with-all-runtime
build: githooks
SKIP_WASM_BUILD= cargo build
purge: target/debug/acala
target/debug/acala purge-chain --dev -y
restart: purge run
target/debug/acala: build
GITHOOKS_SRC = $(wildcard githooks/*)
GITHOOKS_DEST = $(patsubst githooks/%, .git/hooks/%, $(GITHOOKS_SRC))
.git/hooks:
mkdir .git/hooks
.git/hooks/%: githooks/%
cp $^ $@
githooks: .git/hooks $(GITHOOKS_DEST)
init: toolchain submodule build-full
submodule:
git submodule update --init --recursive
update-orml:
cd orml && git checkout master && git pull
git add orml
update: update-orml
cargo update
make check
build-wasm-mandala:
./scripts/build-only-wasm.sh mandala-runtime
build-wasm-karura:
./scripts/build-only-wasm.sh karura-runtime
build-wasm-acala:
./scripts/build-only-wasm.sh acala-runtime