diff options
Diffstat (limited to 'examples/cpp/helloworld')
-rw-r--r-- | examples/cpp/helloworld/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/cpp/helloworld/Makefile b/examples/cpp/helloworld/Makefile index f2093afa05..8e0379c55a 100644 --- a/examples/cpp/helloworld/Makefile +++ b/examples/cpp/helloworld/Makefile @@ -55,6 +55,8 @@ greeter_async_client: helloworld.pb.o helloworld.grpc.pb.o greeter_async_client. greeter_async_server: helloworld.pb.o helloworld.grpc.pb.o greeter_async_server.o $(CXX) $^ $(LDFLAGS) -o $@ +.PRECIOUS: %.grpc.pb.cc %.pb.cc + %.grpc.pb.cc: %.proto $(PROTOC) -I $(PROTOS_PATH) --grpc_out=. --plugin=protoc-gen-grpc=$(GRPC_CPP_PLUGIN_PATH) $< |