X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=scripts%2FMakefile.clean;h=686cb0d31c7c956943693dd0d517d878cf99b7a0;hb=6454738d4395c8a79843f5c2e3eeb687f9b7e7a9;hp=cff33498fa16a8edcdd872bfaf2da13f6cbae4d2;hpb=ae574a5d7aa1d80469dfcbaa757db2bea536ee66;p=pandora-kernel.git diff --git a/scripts/Makefile.clean b/scripts/Makefile.clean index cff33498fa16..686cb0d31c7c 100644 --- a/scripts/Makefile.clean +++ b/scripts/Makefile.clean @@ -37,14 +37,16 @@ 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) $(EXTRA_TARGETS) $(always) \ +__clean-files := $(extra-y) $(always) \ $(targets) $(clean-files) \ $(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