diff --git a/makefile b/makefile new file mode 100644 index 0000000..86d09c5 --- /dev/null +++ b/makefile @@ -0,0 +1,17 @@ +# 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}