make: tidy redirects to bake

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi 2024-04-24 18:18:46 -07:00
parent e344e2251b
commit 7ea5cffb98
No known key found for this signature in database
GPG Key ID: AFA9DE5F8AB7AF39
1 changed files with 5 additions and 31 deletions

View File

@ -8,6 +8,8 @@ endif
export BUILDX_CMD ?= docker buildx export BUILDX_CMD ?= docker buildx
BAKE_TARGETS := binaries binaries-cross lint lint-gopls validate-vendor validate-docs validate-authors validate-generated-files
.PHONY: all .PHONY: all
all: binaries all: binaries
@ -19,13 +21,9 @@ build:
shell: shell:
./hack/shell ./hack/shell
.PHONY: binaries .PHONY: $(BAKE_TARGETS)
binaries: $(BAKE_TARGETS):
$(BUILDX_CMD) bake binaries $(BUILDX_CMD) bake $@
.PHONY: binaries-cross
binaries-cross:
$(BUILDX_CMD) bake binaries-cross
.PHONY: install .PHONY: install
install: binaries install: binaries
@ -39,14 +37,6 @@ release:
.PHONY: validate-all .PHONY: validate-all
validate-all: lint test validate-vendor validate-docs validate-generated-files validate-all: lint test validate-vendor validate-docs validate-generated-files
.PHONY: lint
lint:
$(BUILDX_CMD) bake lint
.PHONY: lint-gopls
lint-gopls:
$(BUILDX_CMD) bake lint-gopls
.PHONY: test .PHONY: test
test: test:
./hack/test ./hack/test
@ -59,22 +49,6 @@ test-unit:
test-integration: test-integration:
TESTPKGS=./tests ./hack/test TESTPKGS=./tests ./hack/test
.PHONY: validate-vendor
validate-vendor:
$(BUILDX_CMD) bake validate-vendor
.PHONY: validate-docs
validate-docs:
$(BUILDX_CMD) bake validate-docs
.PHONY: validate-authors
validate-authors:
$(BUILDX_CMD) bake validate-authors
.PHONY: validate-generated-files
validate-generated-files:
$(BUILDX_CMD) bake validate-generated-files
.PHONY: test-driver .PHONY: test-driver
test-driver: test-driver:
./hack/test-driver ./hack/test-driver