Newer
Older
grpcdemo / makefile
@tundra tundra on 12 Feb 2017 385 bytes first cut at 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}