From c0cc3d2852196a5c954c913d97be262a25786025 Mon Sep 17 00:00:00 2001 From: Nestor Acuna Blanco Date: Fri, 30 Aug 2024 10:17:43 +0200 Subject: [PATCH] feat: clean task in Makefile This update is beneficial for enabling multiarch support. By default, some tooling is downloaded specifically for amd64. Even with changes in the scripts, the tool does not get updated. Signed-off-by: Nestor Acuna Blanco --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c86eb59bc..05beba552 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,8 @@ E2E_SUITES = \ test/e2e/workflow \ test/e2e/monitoring -BIN_DIR = $(CURDIR)/build/_output/bin/ +OUTPUT_DIR = $(CURDIR)/build/_output/ +BIN_DIR = $(OUTPUT_DIR)/bin/ export GOROOT=$(BIN_DIR)/go/ export GOBIN = $(GOROOT)/bin/ export PATH := $(GOBIN):$(PATH) @@ -223,6 +224,9 @@ lint-monitoring: GOBIN=$$(pwd)/build/_output/bin/ $(GO) install -mod=mod github.com/kubevirt/monitoring/monitoringlinter/cmd/monitoringlinter@e2be790 $(MONITORING_LINTER) ./... +clean: + rm -rf $(OUTPUT_DIR) + .PHONY: \ $(E2E_SUITES) \ all \ @@ -257,5 +261,6 @@ lint-monitoring: release \ update-workflows-branches \ statify-components \ - lint-monitoring + lint-monitoring \ + clean