You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/firmware/protob/Makefile

26 lines
588 B

ifneq ($(V),1)
Q := @
endif
all: messages.pb.c types.pb.c messages_map.h
11 years ago
PYTHON ?= python
11 years ago
%.pb.c: %.pb %.options
@printf " NANOPB $@\n"
$(Q)$(PYTHON) ../../vendor/nanopb/generator/nanopb_generator.py $< -L '#include "%s"' -T
11 years ago
%.pb: %.proto
@printf " PROTOC $@\n"
$(Q)protoc -I/usr/include -I. $< -o $@
11 years ago
%_pb2.py: %.proto
@printf " PROTOC $@\n"
$(Q)protoc -I/usr/include -I. $< --python_out=.
messages_map.h: messages_map.py messages_pb2.py types_pb2.py
$(Q)$(PYTHON) $< | grep -v -e MessageType_Lisk > $@
11 years ago
clean:
rm -f *.pb *.o *.d *.pb.c *.pb.h *_pb2.py messages_map.h