Makefile Codegen
Automate protobuf code generation with a Makefile target.
.PHONY: proto
proto:
protoc \
--go_out=pb --go_opt=paths=source_relative \
--go-grpc_out=pb --go-grpc_opt=paths=source_relative \
proto/*.proto
.PHONY: deps
deps:
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latestmake deps # install plugins once
make proto # regenerate after any .proto change