-
Notifications
You must be signed in to change notification settings - Fork 25
/
Makefile
57 lines (38 loc) · 1.01 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
run: githooks
SKIP_WASM_BUILD= cargo run -- --dev -lruntime=debug
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-debug:
RUSTFLAGS="-Z macro-backtrace" SKIP_WASM_BUILD= cargo +nightly check
test: githooks
SKIP_WASM_BUILD= cargo test --all
build: githooks
SKIP_WASM_BUILD= cargo build
purge: target/debug/laminar
target/debug/laminar purge-chain --dev -y
restart: purge run
target/debug/laminar: 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:
./scripts/build-only-wasm.sh dev-runtime