File: Makefile

package info (click to toggle)
golang-github-grafana-grafana-plugin-model 0.0~git20200514.df1eb6b-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 148 kB
  • sloc: makefile: 14
file content (17 lines) | stat: -rw-r--r-- 433 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GO = GO111MODULE=on go
PROTOC = protoc --plugin=./bin/protoc-gen-go

.PHONY: all clean golang

all: clean golang

clean:
	rm -rf go/datasource/*.pb.go

protoc-gen-go: tools/go.mod
	@cd tools; \
	$(GO) build -o ../bin/protoc-gen-go github.com/golang/protobuf/protoc-gen-go

golang: protoc-gen-go
	${PROTOC} -I . datasource.proto --go_out=plugins=grpc:go/datasource/.
	${PROTOC} -I . renderer.proto --go_out=plugins=grpc:go/renderer/.