Skip to content

Commit 7ea5cff

Browse files
committed
make: tidy redirects to bake
Signed-off-by: Tonis Tiigi <[email protected]>
1 parent e344e22 commit 7ea5cff

File tree

1 file changed

+5
-31
lines changed

1 file changed

+5
-31
lines changed

Makefile

+5-31
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ endif
88

99
export BUILDX_CMD ?= docker buildx
1010

11+
BAKE_TARGETS := binaries binaries-cross lint lint-gopls validate-vendor validate-docs validate-authors validate-generated-files
12+
1113
.PHONY: all
1214
all: binaries
1315

@@ -19,13 +21,9 @@ build:
1921
shell:
2022
./hack/shell
2123

22-
.PHONY: binaries
23-
binaries:
24-
$(BUILDX_CMD) bake binaries
25-
26-
.PHONY: binaries-cross
27-
binaries-cross:
28-
$(BUILDX_CMD) bake binaries-cross
24+
.PHONY: $(BAKE_TARGETS)
25+
$(BAKE_TARGETS):
26+
$(BUILDX_CMD) bake $@
2927

3028
.PHONY: install
3129
install: binaries
@@ -39,14 +37,6 @@ release:
3937
.PHONY: validate-all
4038
validate-all: lint test validate-vendor validate-docs validate-generated-files
4139

42-
.PHONY: lint
43-
lint:
44-
$(BUILDX_CMD) bake lint
45-
46-
.PHONY: lint-gopls
47-
lint-gopls:
48-
$(BUILDX_CMD) bake lint-gopls
49-
5040
.PHONY: test
5141
test:
5242
./hack/test
@@ -59,22 +49,6 @@ test-unit:
5949
test-integration:
6050
TESTPKGS=./tests ./hack/test
6151

62-
.PHONY: validate-vendor
63-
validate-vendor:
64-
$(BUILDX_CMD) bake validate-vendor
65-
66-
.PHONY: validate-docs
67-
validate-docs:
68-
$(BUILDX_CMD) bake validate-docs
69-
70-
.PHONY: validate-authors
71-
validate-authors:
72-
$(BUILDX_CMD) bake validate-authors
73-
74-
.PHONY: validate-generated-files
75-
validate-generated-files:
76-
$(BUILDX_CMD) bake validate-generated-files
77-
7852
.PHONY: test-driver
7953
test-driver:
8054
./hack/test-driver

0 commit comments

Comments
 (0)