Newer
Older
grpcdemo / makefile
# Compile protobufs to language stubs

PROJECT      = grpdemo

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

PYFILES  = ${PYTHONOUT}/${PROJECT}_pb2.py ${PYTHONOUT}/${PROJECT}_pb2_grpc.py


all:
	@mkdir -p ${PYTHONOUT}
	@python -m grpc_tools.protoc -I ${INCLUDES}  --python_out=${PYTHONOUT} --grpc_python_out=${PYTHONOUT} proto/grpcdemo.proto

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