-
Notifications
You must be signed in to change notification settings - Fork 34
/
Makefile
37 lines (31 loc) · 861 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
default: test
lint:
golangci-lint run ./...
tools:
go install google.golang.org/protobuf/cmd/protoc-gen-go
cd tools; go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
# Protocol Buffers compilation is done outside of 'go generate' handling since
# the 'protoc' tool is not installable via 'go install'.
protoc:
@cd tfprotov5/internal/tfplugin5 && \
protoc \
--proto_path=. \
--go_out=. \
--go_opt=paths=source_relative \
--go-grpc_out=. \
--go-grpc_opt=paths=source_relative \
tfplugin5.proto
@cd tfprotov6/internal/tfplugin6 && \
protoc \
--proto_path=. \
--go_out=. \
--go_opt=paths=source_relative \
--go-grpc_out=. \
--go-grpc_opt=paths=source_relative \
tfplugin6.proto
test:
go test ./...
# Generate copywrite headers
generate:
cd tools; go generate ./...
.PHONY: default lint protoc test tools