aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-02-24 20:59:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-02-24 20:59:09 +0000
commit56b03ec7f54a484486cdd5a37e563eb886795f85 (patch)
tree4050de0e4aef764a7169dd85a45d73fdb5fbbc21 /target
parent66d32a575645475bf28f926842023364022019af (diff)
downloadmaster-187ad058-56b03ec7f54a484486cdd5a37e563eb886795f85.tar.gz
master-187ad058-56b03ec7f54a484486cdd5a37e563eb886795f85.tar.bz2
master-187ad058-56b03ec7f54a484486cdd5a37e563eb886795f85.zip
fix make target/linux/package/*-clean
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@3271 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/Makefile6
-rw-r--r--target/linux/package/Makefile4
2 files changed, 7 insertions, 3 deletions
diff --git a/target/Makefile b/target/Makefile
index e066fa9d39..24c34036de 100644
--- a/target/Makefile
+++ b/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/target/linux/package/Makefile b/target/linux/package/Makefile
index a2567ea6bc..77a0583fdf 100644
--- a/target/linux/package/Makefile
+++ b/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)