forked from AcalaNetwork/Acala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (40 loc) · 1.11 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
run: githooks
SKIP_WASM_BUILD= cargo run -- --dev --execution=native -lruntime=debug
toolchain:
./scripts/init.sh
build-wasm: githooks
WASM_BUILD_TYPE=release cargo build
check: githooks
SKIP_WASM_BUILD= cargo check
check-tests: githooks
SKIP_WASM_BUILD= cargo check --tests --all
check-debug:
RUSTFLAGS="-Z external-macro-backtrace" BUILD_DUMMY_WASM_BINARY= cargo +nightly check
check-dummy:
BUILD_DUMMY_WASM_BINARY= cargo check
test: githooks
SKIP_WASM_BUILD= cargo test --all
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-wasm
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
prepare-wasm:
./scripts/build-only-wasm.sh dev-runtime