2019-05-25 10:15:52 +00:00
|
|
|
check: messages.pb messages-binance.pb messages-bitcoin.pb messages-bootloader.pb messages-cardano.pb messages-common.pb messages-crypto.pb messages-debug.pb messages-ethereum.pb messages-lisk.pb messages-management.pb messages-monero.pb messages-nem.pb messages-ripple.pb messages-stellar.pb messages-tezos.pb messages-eos.pb
|
2013-11-26 15:10:55 +00:00
|
|
|
|
|
|
|
%.pb: %.proto
|
|
|
|
protoc -I/usr/include -I. $< -o $@
|
|
|
|
|
2018-07-27 14:01:14 +00:00
|
|
|
combine:
|
|
|
|
echo 'syntax = "proto2";' > combined.proto
|
|
|
|
echo 'import "google/protobuf/descriptor.proto";' >> combined.proto
|
2020-12-09 10:10:23 +00:00
|
|
|
grep -hv -e '^import ' -e '^syntax' -e '^package' -e 'option java_' messages*.proto | sed 's/ hw\.trezor\.messages\.common\./ /' | sed 's/ common\./ /' | grep -v ' reserved '>> combined.proto
|
2018-07-27 14:01:14 +00:00
|
|
|
|
2013-11-26 15:10:55 +00:00
|
|
|
clean:
|
|
|
|
rm -f *.pb
|