forked from bityuan/bityuan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (37 loc) · 1.05 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
CHAIN33=github.com/33cn/chain33
CHAIN33_PATH=vendor/${CHAIN33}
all: vendor build
build:
go build -i -o bityuan
go build -i -o bityuan-cli github.com/bityuan/bityuan/cli
vendor:
make update
make updatevendor
update:
go get -u -v github.com/kardianos/govendor
rm -rf ${CHAIN33_PATH}
git clone --depth 1 -b master https://${CHAIN33}.git ${CHAIN33_PATH}
rm -rf vendor/${CHAIN33}/.git
rm -rf vendor/${CHAIN33}/vendor/github.com/apache/thrift/tutorial/erl/
cp -Rf vendor/${CHAIN33}/vendor/* vendor/
rm -rf vendor/${CHAIN33}/vendor
govendor init
go build -i -o tool github.com/33cn/plugin/vendor/github.com/33cn/chain33/cmd/tools
./tool import --path "plugin" --packname "github.com/bityuan/bityuan/plugin" --conf "plugin/plugin.toml"
updatevendor:
govendor add +e
govendor fetch -v +m
clean:
@rm -rf vendor
@rm -rf datadir
@rm -rf logs
@rm -rf wallet
@rm -rf grpc33.log
@rm -rf bityuan
@rm -rf bityuan-cli
@rm -rf tool
@rm -rf plugin/init.go
@rm -rf plugin/consensus/init
@rm -rf plugin/dapp/init
@rm -rf plugin/crypto/init
@rm -rf plugin/store/init