-
Notifications
You must be signed in to change notification settings - Fork 87
/
Makefile
47 lines (40 loc) · 1.06 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
40
41
42
43
44
45
46
default: help
help:
@echo "COMMAND:"
@echo " make init"
@echo " make protoc"
@echo " make tag"
@echo " make modtidy"
init:
@echo "[INIT] install protoc-gen-go"
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
protoc:
@echo "[PROTOC] build proto files"
cd net && \
cd proto && \
protoc --go_out=. --go_opt=paths=source_relative proto.proto
tag:
./tag.sh
modtidy:
@echo "[MODTIDY] rebuild"
rm -rf \
go.sum \
go.work.sum \
examples/go.sum \
components/cron/go.sum \
components/data-config/go.sum \
components/etcd/go.sum \
components/gin/go.sum \
components/gops/go.sum \
components/gorm/go.sum \
components/mongo/go.sum \
examples/go.sum
go mod tidy
cd components/cron/ && go mod tidy && cd ../../
cd components/data-config/ && go mod tidy && cd ../../
cd components/etcd/ && go mod tidy && cd ../../
cd components/gin/ && go mod tidy && cd ../../
cd components/gops/ && go mod tidy && cd ../../
cd components/gorm/ && go mod tidy && cd ../../
cd components/mongo/ && go mod tidy && cd ../../
cd examples/ && go mod tidy && cd ../../