grpclib/Makefile

51 lines
1.7 KiB
Makefile
Raw Normal View History

__default__:
@echo "Please specify a target to make"
clean:
2018-08-27 17:12:24 +00:00
rm -f ./grpclib/health/v1/*_pb2.py
rm -f ./grpclib/health/v1/*_grpc.py
2018-08-20 14:07:33 +00:00
rm -f ./grpclib/reflection/v1/*_pb2.py
rm -f ./grpclib/reflection/v1/*_grpc.py
2018-08-09 18:27:35 +00:00
rm -f ./grpclib/reflection/v1alpha/*_pb2.py
rm -f ./grpclib/reflection/v1alpha/*_grpc.py
rm -f ./example/helloworld/*_pb2.py
rm -f ./example/helloworld/*_grpc.py
2018-08-20 14:07:33 +00:00
rm -f ./example/streaming/*_pb2.py
rm -f ./example/streaming/*_grpc.py
rm -f ./tests/*_pb2.py
rm -f ./tests/*_grpc.py
proto: clean
2018-08-27 17:12:24 +00:00
python3 -m grpc_tools.protoc -I. --python_out=. --python_grpc_out=. grpclib/health/v1/health.proto
python3 -m grpc_tools.protoc -I. --python_out=. --python_grpc_out=. grpclib/reflection/v1/reflection.proto
2018-08-20 14:07:33 +00:00
python3 -m grpc_tools.protoc -I. --python_out=. --python_grpc_out=. grpclib/reflection/v1alpha/reflection.proto
python3 -m grpc_tools.protoc -Iexample --python_out=example --python_grpc_out=example --grpc_python_out=example example/helloworld/helloworld.proto
python3 -m grpc_tools.protoc -Iexample --python_out=example --python_grpc_out=example example/streaming/helloworld.proto
cd tests; python3 -m grpc_tools.protoc -I. --python_out=. --python_grpc_out=. dummy.proto
2018-08-09 18:27:35 +00:00
release: proto
./scripts/release_check.sh
rm -rf grpclib.egg-info
python setup.py sdist
server:
2018-08-15 09:45:55 +00:00
@PYTHONPATH=example python3 -m reflection.server
2018-08-20 14:07:33 +00:00
server_streaming:
@PYTHONPATH=example python3 -m streaming.server
_server:
2018-08-20 14:07:33 +00:00
@PYTHONPATH=example python3 -m _reference.server
client:
@PYTHONPATH=example python3 -m helloworld.client
2018-08-20 14:07:33 +00:00
client_streaming:
@PYTHONPATH=example python3 -m streaming.client
_client:
2018-08-20 14:07:33 +00:00
@PYTHONPATH=example python3 -m _reference.client
_bench:
@PYTHONPATH=example python3 -m _reference.bench