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 <[email protected]> --- 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)/@[email protected]: $(STATEDIR)/@[email protected]: @$(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
