Newer
Older
grpcdemo / makefile
# Compile protobufs to language stubs

PROJECT      = grpcdemo

INCLUDES     = ./proto
PROTO        = ./proto
PYTHONOUT    = ./python

PROTOFILE    = ${PROTO}/${PROJECT}.proto


all: ${PROTOFILE}
	@python -m grpc_tools.protoc -I ${INCLUDES}  --python_out=${PYTHONOUT} --grpc_python_out=${PYTHONOUT} ${PROTOFILE}

clean:
	@rm -rf ${PYTHONOUT}/*.pyc