C O M P U T E R

This commit is contained in:
2023-05-25 06:57:56 +00:00
parent 23f980bb36
commit 9e97f9842b
13 changed files with 913 additions and 19 deletions

View File

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