forked from openshift/tektoncd-pipeline-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (34 loc) · 972 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
include ./make/verbose.mk
.DEFAULT_GOAL := help
include ./make/help.mk
include ./make/out.mk
include ./make/find-tools.mk
include ./make/go.mk
include ./make/git.mk
include ./make/dev.mk
include ./make/format.mk
include ./make/lint.mk
include ./make/test.mk
include ./make/docker.mk
.PHONY: build
## Build the operator
build: ./out/operator
.PHONY: clean
clean:
$(Q)-rm -rf ${V_FLAG} ./out
$(Q)-rm -rf ${V_FLAG} ./vendor
$(Q)-rm -rf ${V_FLAG} ./tmp
$(Q)go clean ${X_FLAG} ./...
./vendor: Gopkg.toml Gopkg.lock
$(Q)dep ensure ${V_FLAG} -vendor-only
./out/operator: ./vendor $(shell find . -path ./vendor -prune -o -name '*.go' -print)
#$(Q)operator-sdk generate k8s
$(Q)CGO_ENABLED=0 GOARCH=amd64 GOOS=linux \
go build ${V_FLAG} \
-o ./out/operator \
cmd/manager/main.go
$(Q)cp -r deploy/olm-catalog manifests && \
tar -zcvf manifests.tar.gz manifests && \
rm -rf manifests
# TODO: Disable for now for CI to go over
upgrade-build: #TODO: reenable it