forked from infobloxopen/protoc-gen-atlas-query-validate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (23 loc) · 724 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
GOPATH ?= $(HOME)/go
SRCPATH := $(patsubst %/,%,$(GOPATH))/src
default: install
.PHONY: options
options:
protoc -I. -I$(SRCPATH) -I./vendor \
--gogo_out="Mgoogle/protobuf/descriptor.proto=github.com/gogo/protobuf/protoc-gen-gogo/descriptor:$(SRCPATH)" \
options/query_validate.proto
.PHONY: install
install:
go install
.PHONY: example
example: default
protoc -I. -I${SRCPATH} -I./vendor -I./vendor/github.com/grpc-ecosystem/grpc-gateway --atlas-query-validate_out=. example/example.proto
test: example
go test ./...
.PHONY: vendor
vendor:
dep ensure -vendor-only
.PHONY: gentool
gentool:
docker build -t infoblox/atlas-gentool:test-query .
docker image prune -f --filter label=stage=server-intermediate