hodu/Makefile
hyung-hwan dcc0c6afc6 updated Makefile to call protoc only if it's needed.
added the generated grpc code to repository
2024-11-23 12:34:23 +09:00

14 lines
361 B
Makefile

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