From: Felix Fietkau Date: Fri, 24 Feb 2006 20:59:09 +0000 (+0000) Subject: fix make target/linux/package/*-clean X-Git-Tag: reboot~31065 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1c9302c9a9b94512eaa6f653e66ad1577eed0205;p=openwrt%2Fstaging%2Fchunkeey.git fix make target/linux/package/*-clean SVN-Revision: 3271 --- diff --git a/openwrt/target/Makefile b/openwrt/target/Makefile index e066fa9d39..24c34036de 100644 --- a/openwrt/target/Makefile +++ b/openwrt/target/Makefile @@ -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/%,%,$@) + diff --git a/openwrt/target/linux/package/Makefile b/openwrt/target/linux/package/Makefile index a2567ea6bc..77a0583fdf 100644 --- a/openwrt/target/linux/package/Makefile +++ b/openwrt/target/linux/package/Makefile @@ -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)