forked from submariner-io/submariner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (27 loc) · 861 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
41
42
43
build_debug ?= false
restart ?= all
focus ?= .\*
ifneq (,$(DAPPER_HOST_ARCH))
# Running in Dapper
include $(SHIPYARD_DIR)/Makefile.inc
TARGETS := $(shell ls -p scripts | grep -v -e / -e images -e reload-images)
CLUSTERS_ARGS = --cluster_settings $(DAPPER_SOURCE)/scripts/kind-e2e/cluster_settings
clusters: build images
e2e: # internally depends on deploy target, which will execute only if not already deployed
./scripts/kind-e2e/e2e.sh --focus $(focus)
reload-images: build images
./scripts/$@ --restart $(restart)
images: build
./scripts/$@ $(images_flags)
$(TARGETS): vendor/modules.txt
./scripts/$@ --build_debug $(build_debug)
vendor/modules.txt: go.mod
go mod download
go mod vendor
.PHONY: $(TARGETS)
else
# Not running in Dapper
include Makefile.dapper
endif
# Disable rebuilding Makefile
Makefile Makefile.dapper Makefile.inc: ;