forked from tendermint/rust-abci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
16 lines (13 loc) · 747 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Origin
tendermint = https://raw.githubusercontent.com/tendermint/tendermint/master
# Outputs
tmkv = protobuf/github.com/tendermint/tendermint/libs/common/types.proto
tmmerkle = protobuf/github.com/tendermint/tendermint/crypto/merkle/merkle.proto
tmabci = protobuf/github.com/tendermint/tendermint/abci/types/types.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/common/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