forked from bifrost-io/bifrost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
73 lines (55 loc) · 1.8 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
70
71
72
73
.PHONY: init
init:
./scripts/init.sh
# Build Debug
.PHONY: build-asgard
build-asgard: copy-genesis-config
cargo build -p node-cli --locked --features "with-asgard-runtime"
.PHONY: build-bifrost
build-bifrost: copy-genesis-config
cargo build -p node-cli --locked --features "with-bifrost-runtime"
.PHONY: build-all
build-all: copy-genesis-config
cargo build -p node-cli --locked --features "with-all-runtime"
# Build Release
.PHONY: build-asgard-release
build-asgard-release: copy-genesis-config-release
cargo build -p node-cli --locked --features "with-asgard-runtime" --release
.PHONY: build-bifrost-release
build-bifrost-release: copy-genesis-config-release
cargo build -p node-cli --locked --features "with-bifrost-runtime" --release
.PHONY: build-all-release
build-all-release: copy-genesis-config-release
cargo build -p node-cli --locked --features "with-all-runtime" --release
.PHONY: check-asgard
check-asgard:
cargo check -p node-cli --locked --features "with-asgard-runtime"
.PHONY: check-bifrost
check-bifrost:
cargo check -p node-cli --locked --features "with-bifrost-runtime"
.PHONY: check-all
check-all:
cargo check -p node-cli --locked --features "with-all-runtime"
.PHONY: check-tests
check-tests:
cargo check --features "with-all-runtime" --tests
.PHONY: test-bifrost
test-bifrost:
cargo test --features "with-bifrost-runtime"
.PHONY: test-asgard
test-asgard:
cargo test --features "with-asgard-runtime"
.PHONY: test-all
test-all:
cargo test --features "with-all-runtime"
.PHONY: clean
clean:
cargo clean
.PHONY: copy-genesis-config
copy-genesis-config:
mkdir -p "target/debug/res"
cp -r node/service/res/genesis_config target/debug/res
.PHONY: copy-genesis-config-release
copy-genesis-config-release:
mkdir -p "target/release/res"
cp -r node/service/res/genesis_config target/release/res