-
Notifications
You must be signed in to change notification settings - Fork 37
/
Makefile
52 lines (39 loc) · 988 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
44
45
46
47
48
49
50
51
52
.PHONY: all
all: verify-gofmt build test
.PHONY: clean
clean:
rm -rf bin/ _output/ go .version-defs
.PHONY: build
build:
hack/build.sh
# ==============================================================================
# Includes
include build/lib/common.mk
include build/lib/image.mk
# Run test
#
# Args:
# TFLAGS: test flags
# Example:
# make test TFLAGS='-check.f xxx'
.PHONY: test
test:
TESTFLAGS=$(TFLAGS) hack/test-go.sh
.PHONY: verify
verify:
hack/verify-all.sh
.PHONY: verify-gofmt
verify-gofmt:
hack/verify-gofmt.sh
format:
hack/format.sh
build-image: verify-gofmt
hack/build-image.sh tkestack/tapp-controller:latest
push-image:
hack/push-image.sh tkestack/tapp-controller:latest
release: build-image push-image
## release.multiarch: Build docker images for multiple platforms and push manifest lists to registry.
.PHONY: release.multiarch
release.multiarch:
@$(MAKE) image.manifest.push.multiarch BINS="tapp-controller"
# vim: set ts=2 sw=2 tw=0 noet :