forked from gdg-yonsei/fluentify-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) · 654 Bytes
/
Makefile
File metadata and controls
34 lines (27 loc) · 654 Bytes
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
# Define where the *.proto files are located.
PROTO_DIR = idl/proto
# Define the output directory in which to place the build results.
PROTO_GEN_DIR = gen/proto
CURR_DIR = $(PWD)
proto:
docker run --rm \
--volume $(CURR_DIR):/workspace \
--workdir /workspace \
bufbuild/buf generate $(PROTO_DIR)
GO111MODULE = on
CGO_ENABLED = 0
GOOS = linux
GOARCH = amd64
GO_BUILD_OUT_DIR = build
build: proto
mkdir -p $(GO_BUILD_OUT_DIR)
go mod download
go build -o $(GO_BUILD_OUT_DIR)/main .
mock:
docker run --rm \
--volume $(CURR_DIR):/workspace \
--workdir /workspace \
vektra/mockery
clean:
rm -rf $(GO_BUILD_OUT_DIR)
#rm -rf $(PROTO_GEN_DIR)