diff --git a/makefile b/makefile index 5aeadab..e4e4b8e 100644 --- a/makefile +++ b/makefile @@ -1,17 +1,16 @@ # Compile protobufs to language stubs -PROJECT = grpdemo +PROJECT = grpcdemo INCLUDES = ./proto PROTO = ./proto PYTHONOUT = ./python -PYFILES = ${PYTHONOUT}/${PROJECT}_pb2.py ${PYTHONOUT}/${PROJECT}_pb2_grpc.py +PROTOFILE = ${PROTO}/${PROJECT}.proto -all: - @mkdir -p ${PYTHONOUT} - @python -m grpc_tools.protoc -I ${INCLUDES} --python_out=${PYTHONOUT} --grpc_python_out=${PYTHONOUT} proto/grpcdemo.proto +all: ${PROTOFILE} + @python -m grpc_tools.protoc -I ${INCLUDES} --python_out=${PYTHONOUT} --grpc_python_out=${PYTHONOUT} ${PROTOFILE} clean: @rm -rf ${PYTHONOUT}/*.pyc