-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
40 lines (30 loc) · 871 Bytes
/
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
GOOS ?= $(shell go env GOOS)
GOARCH ?= $(shell go env GOARCH)
VERSION = "latest"
REGISTRY = "fishpro3/fast"
TARGETS := fast-controller-manager \
fast-agent
CTL_TARGETS := fast \
fastctl
CMD_TARGET=$(TARGETS) $(CTL_TARGETS)
.PHONY: $(CMD_TARGET)
$(CMD_TARGET):
BUILD_PLATFORMS=$(GOOS)/$(GOARCH) hack/build.sh $@
IMAGE_TARGET=$(addprefix image-, $(TARGETS))
.PHONY: $(IMAGE_TARGET)
$(IMAGE_TARGET):
set -e;\
target=$$(echo $(subst image-,,$@));\
make $$target GOOS=linux;\
VERSION=$(VERSION) REGISTRY=$(REGISTRY) BUILD_PLATFORMS=linux/$(GOARCH) hack/docker.sh $$target
images: $(IMAGE_TARGET)
protoc:
cd api/proto/v1 && protoc --go_out=. --go_opt=paths=source_relative \
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
*.proto
codegen:
hack/update-codegen.sh
crdgen:
hack/update-crdgen.sh
load:
make -C bpf load