-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (31 loc) · 817 Bytes
/
Makefile
File metadata and controls
38 lines (31 loc) · 817 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
35
36
37
38
.PHONY: protos
protos:
./setup/scripts/build-protos.sh
.PHONY: test
test:
go test ./...
.PHONY: cover
cover:
dir="$$TMPDIR"; \
go test -coverpkg=./... -coverprofile="$$dir"/coverage.out ./...; \
go tool cover -html="$$dir"/coverage.out
.PHONY: generate
generate:
go generate ./...
.PHONY: build
build:
./setup/scripts/cross-build.sh
.PHONY: build-image
build-image:
./setup/scripts/build-image.sh
.PHONY: push-image
push-image:
docker push taocker/taoblog:amd64-latest
.PHONY: tools
tools:
go install \
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway \
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 \
google.golang.org/protobuf/cmd/protoc-gen-go \
google.golang.org/grpc/cmd/protoc-gen-go-grpc \
github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger