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


Reply via email to