From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 20 Nov 2023 19:53:06 +0100 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 1r59OL-001oz6-1l for lore@lore.pengutronix.de; Mon, 20 Nov 2023 19:53:06 +0100 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 1r59OL-0005N9-Tj; Mon, 20 Nov 2023 19:53:05 +0100 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 1r59O2-0005MG-Am; Mon, 20 Nov 2023 19:52:46 +0100 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 1r59O1-00APZC-UX; Mon, 20 Nov 2023 19:52:45 +0100 Received: from rhi by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1r59O1-009AmW-2u; Mon, 20 Nov 2023 19:52:45 +0100 From: Roland Hieber To: ptxdist@pengutronix.de Date: Mon, 20 Nov 2023 19:52:44 +0100 Message-Id: <20231120185244.2185899-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] rules: template-src-make-prog-make: make use of the 'execute' macro 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 It does everything that is written out explicitely here; additionally it will also respect @PACKAGE@_SUBDIR if it should be set. Signed-off-by: Roland Hieber --- rules/templates/template-src-make-prog-make | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rules/templates/template-src-make-prog-make b/rules/templates/template-src-make-prog-make index 50957c0f83ee..7227916e234f 100644 --- a/rules/templates/template-src-make-prog-make +++ b/rules/templates/template-src-make-prog-make @@ -92,8 +92,7 @@ $(STATEDIR)/@package@.targetinstall: $(STATEDIR)/@package@.clean: @$(call targetinfo) - @-cd $(@PACKAGE@_DIR) && \ - $(@PACKAGE@_ENV) $(@PACKAGE@_PATH) $(MAKE) clean + @-$(call execute, @PACKAGE@, $(MAKE) clean) @$(call clean_pkg, @PACKAGE@) # vim: syntax=make -- 2.39.2