mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
Pr 1770 (#1771)
* make pb * Makefile for pb Move the Makefile into the pb directory to remove some clutter from the main Makefile.
This commit is contained in:
committed by
John Belamaric
parent
bf479f9ac2
commit
41f1a1434a
11
pb/Makefile
Normal file
11
pb/Makefile
Normal file
@@ -0,0 +1,11 @@
|
||||
# Generate the Go files from the dns.proto protobuf, you need the utilities
|
||||
# from: https://github.com/golang/protobuf to make this work.
|
||||
# The generate dns.pb.go is checked into git, so for normal builds we don't need
|
||||
# to run this generation step.
|
||||
|
||||
all: dns.pb.go
|
||||
|
||||
dns.pb.go: dns.proto
|
||||
protoc --go_out=plugins=grpc:. dns.proto && \
|
||||
sed -e s?golang.org/x/net/context?context? < dns.pb.go > dns.pb.go.tmp && \
|
||||
mv dns.pb.go.tmp dns.pb.go
|
||||
Reference in New Issue
Block a user