-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (40 loc) · 1.2 KB
/
Makefile
File metadata and controls
49 lines (40 loc) · 1.2 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
.PHONY: deps
deps:
docker-compose run --rm deps
.PHONY: build
docker-compose run -rm build
.PHONY: integration
integration:
docker-compose -f integration-compose.yaml up
.PHONY: integration-down
integration-down:
docker-compose -f integration-compose.yaml down
.PHONY: proto-gateway
proto-gateway:
protoc -I/usr/local/include -I. \
-I$(GOPATH)/src \
-I$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--grpc-gateway_out=logtostderr=true:. \
api/transpose.proto
.PHONY: proto-swagger
proto-swagger:
protoc -I/usr/local/include -I. \
-I$(GOPATH)/src \
-I$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--swagger_out=logtostderr=true:. \
api/transpose.proto
.PHONY: proto-client
proto-client:
protoc -I/usr/local/include -I. \
-I$(GOPATH)/src \
-I$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--go_out=plugins=grpc:. \
api/transpose.proto
.PHONY: proto
proto:
protoc -I/usr/local/include -I. \
-I$(GOPATH)/src \
-I$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--go_out=plugins=grpc:$(GOPATH)/src \
api/transpose.proto
gen-proto: proto proto-gateway proto-swagger proto-client