updated Makefile to call protoc only if it's needed.

added the generated grpc code to repository
This commit is contained in:
2024-11-23 12:34:23 +09:00
parent a78a0a4fc4
commit dcc0c6afc6
4 changed files with 762 additions and 46 deletions

View File

@ -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