summaryrefslogtreecommitdiff
path: root/scripts/Makefile.clean
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2011-08-02 21:06:24 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2011-08-02 21:16:34 +0200
commitb841bc9b8ea79d76f2964e04973066b09978e109 (patch)
treec346974be9e04e87b954046d0e81fc00a52f2ad7 /scripts/Makefile.clean
parentb2777ca443e9a5470bc07760cb958f8d4d5e1cb5 (diff)
downloadembtoolkit-b841bc9b8ea79d76f2964e04973066b09978e109.tar.gz
embtoolkit-b841bc9b8ea79d76f2964e04973066b09978e109.tar.bz2
embtoolkit-b841bc9b8ea79d76f2964e04973066b09978e109.tar.xz
Build system: kconfig : Update from linux-mips 0085b5e052d478f5ef1129ed7325f8f07d720ad4
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'scripts/Makefile.clean')
-rw-r--r--scripts/Makefile.clean6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/Makefile.clean b/scripts/Makefile.clean
index d81ccf2..ecbbecd 100644
--- a/scripts/Makefile.clean
+++ b/scripts/Makefile.clean
@@ -45,18 +45,20 @@ __clean-files := $(extra-y) $(always) \
$(host-progs) \
$(hostprogs-y) $(hostprogs-m) $(hostprogs-)
+__clean-files := $(filter-out $(no-clean-files), $(__clean-files))
+
# as clean-files is given relative to the current directory, this adds
# a $(obj) prefix, except for absolute paths
__clean-files := $(wildcard \
- $(addprefix $(obj)/, $(filter-out /%, $(__clean-files))) \
+ $(addprefix $(obj)/, $(filter-out %, $(__clean-files))) \
$(filter %, $(__clean-files)))
# as clean-dirs is given relative to the current directory, this adds
# a $(obj) prefix, except for absolute paths
__clean-dirs := $(wildcard \
- $(addprefix $(obj)/, $(filter-out /%, $(clean-dirs))) \
+ $(addprefix $(obj)/, $(filter-out %, $(clean-dirs))) \
$(filter %, $(clean-dirs)))
# ==========================================================================