-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
39 lines (31 loc) · 1.19 KB
/
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
38
39
build_darwin:
GOOS=darwin GOARD=amd64 go build -o ./bin/server/server_darwin_x86_64 ./cmd/server
build_windows:
GOOS=windows GOARD=amd64 go build -o ./bin/server/server_windows_x86_64.exe ./cmd/server
build_linux:
GOOS=linux GOARD=amd64 go build -o ./bin/server/server_linux_x86_64 ./cmd/server
build: build_darwin build_windows build_linux
api_go:
protoc -I api/proto/v1/ \
-I ${GOPATH}/src \
-I ${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
-I ${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway \
--go_out=plugins=grpc:pkg/api/v1 \
economy_service.proto
api_gateway:
protoc -I api/proto/v1/ \
-I${GOPATH}/src \
-I${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
-I ${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway \
--grpc-gateway_out=logtostderr=true:pkg/api/v1 \
economy_service.proto
api_swagger:
protoc -I api/proto/v1/ \
-I${GOPATH}/src \
-I${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
-I ${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway \
--swagger_out=logtostderr=true:api/swagger/v1 \
economy_service.proto
api: api_go api_gateway api_swagger
mocks:
cd pkg && mockery -all