-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
30 lines (25 loc) · 1.34 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
.PHONY: all omnilock anyone-can-pay xudt spore
all: omnilock anyone-can-pay xudt spore
omnilock:
@echo "Building omnilock via submodule"
cd ckb/omnilock && git submodule update --init && make all-via-docker
cp ckb/omnilock/build/always_success ckb/devnet/specs/
cp ckb/omnilock/build/omni_lock ckb/devnet/specs/
anyone-can-pay:
@echo "Building anyone-can-pay via submodule"
cd ckb/anyone-can-pay && git submodule update --init && make all-via-docker
cp ckb/anyone-can-pay/build/anyone_can_pay ckb/devnet/specs/
xudt:
@echo "Building xUDT via submodule"
cd ckb/ckb-production-scripts && git submodule update --init && make all-via-docker
cp ckb/ckb-production-scripts/build/xudt_rce ckb/devnet/specs/
cp ckb/ckb-production-scripts/build/simple_udt ckb/devnet/specs/sudt
spore:
@echo "Building Spore via submodule"
cd ckb/spore-contract && cargo install cross --git https://github.com/cross-rs/cross
cd ckb/spore-contract && capsule build --release
cp ckb/spore-contract/build/release/spore ckb/devnet/specs/spore-scripts/
cp ckb/spore-contract/build/release/cluster ckb/devnet/specs/spore-scripts/
cp ckb/spore-contract/build/release/cluster_agent ckb/devnet/specs/spore-scripts/
cp ckb/spore-contract/build/release/cluster_proxy ckb/devnet/specs/spore-scripts/
cp ckb/spore-contract/build/release/spore_extension_lua ckb/devnet/specs/spore-scripts/