change handling of the Build/Clean template
[openwrt.git] / package / rules.mk
index d44cd98..77a6595 100644 (file)
@@ -257,10 +257,6 @@ define Build/Compile
   $(call Build/Compile/Default,)
 endef
 
   $(call Build/Compile/Default,)
 endef
 
-define Build/Clean
-       $(MAKE) clean
-endef
-
 ifneq ($(DUMP),)
   dumpinfo: FORCE
        @$(DUMPINFO)
 ifneq ($(DUMP),)
   dumpinfo: FORCE
        @$(DUMPINFO)
@@ -282,5 +278,6 @@ else
   clean-targets:
   clean: FORCE
        @$(MAKE) clean-targets
   clean-targets:
   clean: FORCE
        @$(MAKE) clean-targets
+       $(call Build/Clean)
        rm -rf $(PKG_BUILD_DIR)
 endif
        rm -rf $(PKG_BUILD_DIR)
 endif
This page took 0.020264 seconds and 4 git commands to generate.