summaryrefslogtreecommitdiffstats
path: root/openwrt/target
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-02-24 20:59:09 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-02-24 20:59:09 +0000
commitfeab1d97643b297d3b1231c48edbb10a832681b5 (patch)
treef6a2caf2abd3e4af5fbcf3fd74bcba5553570cf1 /openwrt/target
parentb570fcc8fc069b5ed5295c79fd25ce87734e5797 (diff)
fix make target/linux/package/*-clean
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3271 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/target')
-rw-r--r--openwrt/target/Makefile6
-rw-r--r--openwrt/target/linux/package/Makefile4
2 files changed, 7 insertions, 3 deletions
diff --git a/openwrt/target/Makefile b/openwrt/target/Makefile
index e066fa9d3..24c34036d 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 a2567ea6b..77a0583fd 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)