fix make target/linux/package/*-clean
authorFelix Fietkau <nbd@openwrt.org>
Fri, 24 Feb 2006 20:59:09 +0000 (20:59 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 24 Feb 2006 20:59:09 +0000 (20:59 +0000)
SVN-Revision: 3271

openwrt/target/Makefile
openwrt/target/linux/package/Makefile

index e066fa9d393f391eefbda1f346d8402510dd43e6..24c34036de3334405aa15ef93d0712c80fd58bb1 100644 (file)
@@ -16,6 +16,9 @@ clean: linux-clean utils-clean lzma-clean image_clean
 image_clean:
        rm -f $(BIN_DIR)/openwrt-*
 
+linux/package/%:
+       $(MAKE) -C $(TOPDIR)/target/linux $(patsubst linux/%,%,$@)
+
 %-clean:
        @$(TRACE) target/$(patsubst %-clean,%,$@)-clean
        $(MAKE) -C $(patsubst %-clean,%,$@) clean
@@ -35,5 +38,4 @@ linux-imagebuilder:
        @$(TRACE) target/linux/imagebuilder
        $(MAKE) -C linux imagebuilder
 
-linux/package/%:
-       $(MAKE) -C $(TOPDIR)/target/linux $(patsubst linux/%,%,$@)
+
index a2567ea6bc7dab8d10f825493755c7538c644a6a..77a0583fdf82e6fbe54da7d1458029005264e59a 100644 (file)
@@ -55,7 +55,9 @@ KPKG_MAKEOPTS += BUILD_DIR="$(LINUX_BUILD_DIR)"
 
 %-clean:
        @$(START_TRACE) "target/linux/package/$(patsubst %-clean,%,$@)-clean: "
-       @$(MAKE) -C $(patsubst %-clean,%,$@) clean
+       @$(MAKE) -C $(patsubst %-clean,%,$@) \
+               $(KPKG_MAKEOPTS) \
+               clean
        @$(CMD_TRACE) " done"
        @$(END_TRACE)