-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (24 loc) · 1.31 KB
/
Makefile
File metadata and controls
29 lines (24 loc) · 1.31 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
MODULE ?= github.com/isometry/platform-health
export KO_DOCKER_REPO ?= ghcr.io/isometry/platform-health
.PHONY: build
build: protoc
goreleaser build --clean --single-target --snapshot --skip=post-hooks
.PHONY: ko-build
ko-build: protoc generate
ko build --bare ./cmd/phs
.PHONY: generate
generate:
go generate ./...
protoc: pkg/platform_health/platform_health.pb.go pkg/platform_health/platform_health_grpc.pb.go pkg/platform_health/details/detail_loop.pb.go pkg/platform_health/details/detail_tls.pb.go pkg/platform_health/details/detail_kstatus.pb.go pkg/platform_health/details/detail_dns.pb.go
pkg/platform_health/platform_health.pb.go: proto/platform_health.proto
protoc --go_out=. --go_opt=module=$(MODULE) $<
pkg/platform_health/platform_health_grpc.pb.go: proto/platform_health.proto
protoc --go-grpc_out=. --go-grpc_opt=module=$(MODULE) $<
pkg/platform_health/details/detail_tls.pb.go: proto/detail_tls.proto
protoc --go_out=. --go_opt=module=$(MODULE) $<
pkg/platform_health/details/detail_loop.pb.go: proto/detail_loop.proto
protoc --go_out=. --go_opt=module=$(MODULE) $<
pkg/platform_health/details/detail_kstatus.pb.go: proto/detail_kstatus.proto
protoc --go_out=. --go_opt=module=$(MODULE) $<
pkg/platform_health/details/detail_dns.pb.go: proto/detail_dns.proto
protoc --go_out=. --go_opt=module=$(MODULE) $<