forked from tendermint/rust-abci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
18 lines (16 loc) · 788 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Origin
version_branch = v0.33.6
tendermint = https://raw.githubusercontent.com/tendermint/tendermint/$(version_branch)
# Outputs
tmkv = protobuf/libs/kv/types.proto
tmmerkle = protobuf/crypto/merkle/merkle.proto
tmabci = protobuf/abci/types/types.proto
third_party = third_party/proto/gogoproto/gogo.proto
# You *only* need to run this to rebuild protobufs from the tendermint source
update-proto:
curl $(tendermint)/abci/types/types.proto > $(tmabci)
curl $(tendermint)/libs/kv/types.proto > $(tmkv)
curl $(tendermint)/crypto/merkle/merkle.proto > $(tmmerkle)
sed 's@package types;@package abci;@' $(tmabci) > protobuf/abci.proto
curl $(tendermint)/version/version.go | grep -F -eTMCoreSem -eABCISemVer > version.txt
curl $(tendermint)/$(third_party) > protobuf/$(third_party)