mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] templates: src-make-prog: add <PKG>_MAKE_ENV to 'make clean' call
@ 2024-08-21  9:52 Roland Hieber
  2024-09-12 12:11 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Roland Hieber @ 2024-08-21  9:52 UTC (permalink / raw)
  To: ptxdist; +Cc: Roland Hieber

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 <rhi@pengutronix.de>
---
 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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-09-12 12:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-21  9:52 [ptxdist] [PATCH] templates: src-make-prog: add <PKG>_MAKE_ENV to 'make clean' call Roland Hieber
2024-09-12 12:11 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox