mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-12 18:49:07 +00:00
13 lines
700 B
Makefile
13 lines
700 B
Makefile
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-management.pb messages-monero.pb messages-nem.pb messages-ripple.pb messages-stellar.pb messages-tezos.pb messages-eos.pb
|
|
|
|
%.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 '^package' -e 'option java_' messages*.proto | sed 's/ hw\.trezor\.messages\.common\./ /' | sed 's/ common\./ /' | grep -v ' reserved '>> combined.proto
|
|
|
|
clean:
|
|
rm -f *.pb
|