blob: 63ccf2f90e3bd3140fa60e6ef8643b761dc3cc62 [file] [log] [blame] [edit]
# Makefile to update protobuf objects
#
# Every time the protos are updated, just run:
# $ make
CWD=$(shell pwd)
PROTOFOLDER=$(CWD)/proto
OUTPUT_FOLDER=$(CWD)/genfiles
.PHONY: proto
all: proto
gen_proto:
protoc -I$(PROTOFOLDER) --python_out=$(OUTPUT_FOLDER) $(PROTOFOLDER)/*.proto
gen_init:
touch $(OUTPUT_FOLDER)/__init__.py
proto: gen_proto gen_init