C O M P U T E R
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
PROTOFILES = $(wildcard *.proto)
|
||||
GO_TARGETS = $(patsubst %.proto,%.pb.go,$(PROTOFILES))
|
||||
DEBIAN_DEPS = protobuf-compiler protoc-gen-go
|
||||
DEBIAN_DEPS = protobuf-compiler protoc-gen-go protobuf-compiler-grpc \
|
||||
golang-goprotobuf-dev golang-google-genproto-dev \
|
||||
golang-google-grpc-dev grpc-proto golang-protobuf-extensions-dev
|
||||
|
||||
.PHONY: all
|
||||
all: $(GO_TARGETS)
|
||||
|
||||
%.pb.go: %.proto
|
||||
protoc -I=$(PWD) --go_out=$(PWD) $<
|
||||
protoc -I=$(PWD) --go_out=$(PWD) --go-grpc_out=. --go-grpc_opt=paths=source_relative $<
|
||||
|
||||
.PHONY: install-debian-deps
|
||||
install-debian-deps:
|
||||
|
||||
Reference in New Issue
Block a user