updated Makefile to call protoc only if it's needed.
added the generated grpc code to repository
This commit is contained in:
12
Makefile
12
Makefile
@ -1,5 +1,13 @@
|
||||
all:
|
||||
all: hodu.pb.go hodu_grpc.pb.go
|
||||
go build -x -o hodu cmd/main.go
|
||||
|
||||
|
||||
hodu.pb.go: hodu.proto
|
||||
protoc --go_out=. --go_opt=paths=source_relative \
|
||||
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
|
||||
hodu.proto
|
||||
|
||||
hodu_grpc.pb.go: hodu.proto
|
||||
protoc --go_out=. --go_opt=paths=source_relative \
|
||||
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
|
||||
hodu.proto
|
||||
go build -x -o hodu cmd/main.go
|
||||
|
Reference in New Issue
Block a user