summaryrefslogtreecommitdiff
path: root/scripts/Makefile.clean
diff options
context:
space:
mode:
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)))
# ==========================================================================