1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-15 12:08:59 +00:00
trezor-firmware/protob/Makefile

13 lines
574 B
Makefile
Raw Normal View History

2018-07-22 18:07:05 +00:00
check: messages.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
2013-11-26 15:10:55 +00:00
%.pb: %.proto
protoc -I/usr/include -I. $< -o $@
combine:
echo 'syntax = "proto2";' > combined.proto
echo 'import "google/protobuf/descriptor.proto";' >> combined.proto
grep -hv -e '^import ' -e '^syntax' -e 'option java_' messages*.proto >> combined.proto
2013-11-26 15:10:55 +00:00
clean:
rm -f *.pb