forked from openshift/ibm-roks-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (26 loc) · 807 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
SRC_DIRS = cmd pkg
.PHONY: default
default: build
.PHONY: build
build: bindata control-plane-operator
go build -mod=vendor -o bin/ibm-roks github.com/openshift/ibm-roks-toolkit/cmd/ibm-roks
.PHONY: bindata
bindata:
hack/update-generated-bindata.sh
.PHONY: verify-bindata
verify-bindata:
hack/verify-generated-bindata.sh
.PHONY: verify-gofmt
verify-gofmt:
@echo Verifying gofmt
@gofmt -l -s $(SRC_DIRS)>.out 2>&1 || true
@[ ! -s .out ] || \
(echo && echo "*** Please run 'make fmt' in order to fix the following:" && \
cat .out && echo && rm .out && false)
@rm .out
.PHONY: verify
verify: verify-gofmt verify-bindata
# Build manager binary
.PHONY: control-plane-operator
control-plane-operator:
go build -mod=vendor -o ./bin/control-plane-operator ./cmd/control-plane-operator/main.go