From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 21 Aug 2024 11:52:36 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sgi16-00BsPx-00 for lore@lore.pengutronix.de; Wed, 21 Aug 2024 11:52:36 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1sgi14-0000Rc-UK; Wed, 21 Aug 2024 11:52:34 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sgi0h-0000Pz-4W; Wed, 21 Aug 2024 11:52:11 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sgi0g-001ywm-NP; Wed, 21 Aug 2024 11:52:10 +0200 Received: from rhi by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1sgi0g-006Awm-28; Wed, 21 Aug 2024 11:52:10 +0200 From: Roland Hieber To: ptxdist@pengutronix.de Date: Wed, 21 Aug 2024 11:52:06 +0200 Message-Id: <20240821095206.1472031-1-rhi@pengutronix.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Mail-Followup-To: Roland Hieber , ptxdist@pengutronix.de Content-Transfer-Encoding: 8bit Subject: [ptxdist] [PATCH] templates: src-make-prog: add _MAKE_ENV to 'make clean' call X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Roland Hieber Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false The make environment can contain variables influencing the build output folder, which might not be set correctly with only a simple 'make clean', in which case the build output will not actually be removed. Signed-off-by: Roland Hieber --- rules/templates/template-src-make-prog-make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/templates/template-src-make-prog-make b/rules/templates/template-src-make-prog-make index 7227916e234f..9bd5c8dc5ab3 100644 --- a/rules/templates/template-src-make-prog-make +++ b/rules/templates/template-src-make-prog-make @@ -92,7 +92,7 @@ $(STATEDIR)/@package@.targetinstall: $(STATEDIR)/@package@.clean: @$(call targetinfo) - @-$(call execute, @PACKAGE@, $(MAKE) clean) + @-$(call execute, @PACKAGE@, $(@PACKAGE@_MAKE_ENV) $(MAKE) clean) @$(call clean_pkg, @PACKAGE@) # vim: syntax=make -- 2.39.2