forked from datachainlab/fabric-cosmos-ibc-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (43 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
.PHONY: build
build:
make -C chaincode build \
&& make -C contract build \
&& make -C relayer build
.PHONY: setup
setup: start-cosmos start-fabric prepare
.PHONY: start-fabric
start-fabric:
make -C networks/fabric start
.PHONY: start-cosmos
start-cosmos:
make -C networks/cosmos up
.PHONY: prepare
prepare:
make \
RLY_BINARY=${CURDIR}/relayer/build/uly \
TM_BINARY=${CURDIR}/contract/build/simd \
MSPS_DIR=${CURDIR}/networks/fabric/msps \
TM_DATA_DIR=${CURDIR}/networks/cosmos/fixtures/data \
-C tests prepare
.PHONY: transfer
transfer:
make \
RLY_BINARY=${CURDIR}/relayer/build/uly \
TM_BINARY=${CURDIR}/contract/build/simd \
MSPS_DIR=${CURDIR}/networks/fabric/msps \
TM_DATA_DIR=${CURDIR}/networks/cosmos/fixtures/data \
-C tests test
.PHONY: stop
stop:
make -C networks down
.PHONY: stop-fabric
stop-fabric:
make -C networks/fabric down
.PHONY: stop-cosmos
stop-cosmos:
make -C networks/cosmos down
.PHONY: clean
clean:
make -C networks/fabric clean
make -C networks/cosmos clean
make -C tests clean