forked from openshift/cluster-ingress-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
82 lines (62 loc) · 1.59 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
all: generate build
PACKAGE=github.com/openshift/cluster-ingress-operator
MAIN_PACKAGE=$(PACKAGE)/cmd/ingress-operator
BIN=$(lastword $(subst /, ,$(MAIN_PACKAGE)))
ifneq ($(DELVE),)
GO_GCFLAGS ?= -gcflags=all="-N -l"
endif
GO=GO111MODULE=on GOFLAGS=-mod=vendor go
GO_BUILD_RECIPE=CGO_ENABLED=1 $(GO) build -o $(BIN) $(GO_GCFLAGS) $(MAIN_PACKAGE)
TEST ?= TestAll
.PHONY: build
build: generate
$(GO_BUILD_RECIPE)
.PHONY: buildconfig
buildconfig:
hack/create-buildconfig.sh
.PHONY: cluster-build
cluster-build:
hack/start-build.sh
# TODO: Add deepcopy generation script/target
.PHONY: generate
generate: manifests
.PHONY: update
update: crd
# Generate CRDs from vendored and internal API specs.
.PHONY: crd
crd:
hack/update-generated-crd.sh
hack/update-profile-manifests.sh
.PHONY: manifests
manifests:
go generate ./pkg/manifests
.PHONY: test
test: generate
CGO_ENABLED=1 $(GO) test ./...
.PHONY: release-local
release-local:
MANIFESTS=$(shell mktemp -d) hack/release-local.sh
.PHONY: test-e2e
test-e2e: generate
CGO_ENABLED=1 $(GO) test -timeout 1h -count 1 -v -tags e2e -run "$(TEST)" ./test/e2e
.PHONY: test-e2e-list
test-e2e-list: generate
@(cd ./test/e2e; E2E_TEST_MAIN_SKIP_SETUP=1 $(GO) test -list . -tags e2e | grep ^Test | sort)
.PHONY: clean
clean:
$(GO) clean
rm -f $(BIN)
rm -rf pkg/manifests/manifests
.PHONY: verify
verify: generate
hack/verify-gofmt.sh
hack/verify-generated-crd.sh
hack/verify-profile-manifests.sh
hack/verify-deps.sh
hack/verify-e2e-test-all-presence.sh
.PHONY: uninstall
uninstall:
hack/uninstall.sh
.PHONY: run-local
run-local: build
hack/run-local.sh