forked from apigee/registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (23 loc) · 570 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
include tools/PROTOC-VERSION.sh
export $(shell sed 's/=.*//' tools/PROTOC-VERSION.sh)
lite:
go install ./...
protoc:
ifeq (, $(shell which protoc))
@echo "Error! protoc not found on path, please install version ${PROTOC_VERSION}."; exit 1
endif
all: protos
./tools/GENERATE-CLI.sh
go install ./...
protos: protoc
./tools/GENERATE-RPC.sh
./tools/GENERATE-GRPC.sh
./tools/GENERATE-GAPIC.sh
./tools/GENERATE-ENVOY-DESCRIPTORS.sh
lintfix:
golangci-lint run --fix
test:
go clean -testcache
go test ./...
clean:
rm -rf docs/ third_party/api-common-protos