summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/rules.mk5
1 files changed, 1 insertions, 4 deletions
diff --git a/package/rules.mk b/package/rules.mk
index d44cd986a..77a6595e8 100644
--- a/package/rules.mk
+++ b/package/rules.mk
@@ -257,10 +257,6 @@ define Build/Compile
$(call Build/Compile/Default,)
endef
-define Build/Clean
- $(MAKE) clean
-endef
-
ifneq ($(DUMP),)
dumpinfo: FORCE
@$(DUMPINFO)
@@ -282,5 +278,6 @@ else
clean-targets:
clean: FORCE
@$(MAKE) clean-targets
+ $(call Build/Clean)
rm -rf $(PKG_BUILD_DIR)
endif