X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=scripts%2FMakefile.clean;h=686cb0d31c7c956943693dd0d517d878cf99b7a0;hb=706d4b12f8d7edd28d7e879a77235472da393edb;hp=2c647107c9ccadef446364a70dc16af552d3b237;hpb=836caba77c290a62743fa9c5a69ed9605ec9cb28;p=karo-tx-linux.git diff --git a/scripts/Makefile.clean b/scripts/Makefile.clean index 2c647107c9cc..686cb0d31c7c 100644 --- a/scripts/Makefile.clean +++ b/scripts/Makefile.clean @@ -37,7 +37,7 @@ subdir-ymn := $(sort $(subdir-ym) $(subdir-n) $(subdir-)) subdir-ymn := $(addprefix $(obj)/,$(subdir-ymn)) -# build a list of files to remove, usually releative to the current +# build a list of files to remove, usually relative to the current # directory __clean-files := $(extra-y) $(always) \ @@ -45,6 +45,8 @@ __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