-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
48 lines (36 loc) · 1.18 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
COMMON_GOFLAGS := -mod=vendor
COMMON_LDFLAGS := -X $(PROJECT)/pkg/version.GITCOMMIT=$(GITCOMMIT)
BUILD_FLAGS := $(COMMON_GOFLAGS) -ldflags="$(COMMON_LDFLAGS)"
all: build
.PHONY: all
GO_PACKAGES=$(shell go list ./... | grep -v tools)
# Include the library makefile
include $(addprefix ./vendor/github.com/openshift/build-machinery-go/make/, \
golang.mk \
targets/openshift/bindata.mk \
targets/openshift/deps.mk \
)
verify-scripts:
bash -x hack/verify-apigen.sh
.PHONY: verify-scripts
update-scripts:
hack/update-apigen.sh
.PHONY: update-scripts
ensure-golangci-lint:
hack/ensure-golangci-lint.sh
.PHONY: ensure-golangci-lint
lint: ensure-golangci-lint
bin/golangci-lint -c .golangci.yaml run
verify: verify-scripts lint
test-e2e: build
time ./test/e2e.sh
.PHONY: test-e2e
gen-e2e: build
time ./test/files/report-generator.sh
.PHONY: gen-e2e
.PHONY: cross
cross: build test ## depends on https://github.com/openshift/build-machinery-go/blob/2b271bb3a0ad466045cd6da5c9423084e9cf68f0/make/lib/golang.mk
./hack/compile.sh $(GO_LD_FLAGS)
.PHONY: prepare-release
prepare-release: cross ## create gzipped binaries in ./dist/release/ for uploading to GitHub release page
./hack/prepare-release.sh