From 4bbc01b3494f16e17d55bae08508910f85300c00 Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Sat, 31 Aug 2024 09:32:27 +0300 Subject: [PATCH] build: allow building a single plugin image. Allow skipping builds of operator and bundle image. This allows one to build just a single image, instead lf always building at least three. Signed-off-by: Krisztian Litkey --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6bacbd8fe..a78d791d3 100644 --- a/Makefile +++ b/Makefile @@ -80,6 +80,10 @@ PLUGINS ?= \ BINARIES ?= \ config-manager +OTHER_IMAGE_TARGETS ?= \ + nri-plugins-operator-image \ + nri-plugins-operator-bundle-image + ifneq ($(V),1) Q := @ endif @@ -211,8 +215,7 @@ $(BIN_PATH)/%: .static.%.$(STATIC) images: $(foreach p,$(PLUGINS),image.$(p)) \ $(foreach p,$(BINARIES),image.$(p)) \ - nri-plugins-operator-image \ - nri-plugins-operator-bundle-image + $(OTHER_IMAGE_TARGETS) image.nri-resource-policy-% \ image.nri-% \