X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=scripts%2FMakefile.clean;h=5cd0f51770a8d69112ef9337da2b130a62567012;hp=686cb0d31c7c956943693dd0d517d878cf99b7a0;hb=efcf861931f987d82b11caed75b8c2ad9d709274;hpb=2887c47338777cda675fc3aec8b88ab8dc18235d diff --git a/scripts/Makefile.clean b/scripts/Makefile.clean index 686cb0d31c..5cd0f51770 100644 --- a/scripts/Makefile.clean +++ b/scripts/Makefile.clean @@ -37,6 +37,10 @@ subdir-ymn := $(sort $(subdir-ym) $(subdir-n) $(subdir-)) subdir-ymn := $(addprefix $(obj)/,$(subdir-ymn)) +# Temporal work-around for U-Boot + +subdir-ymn := $(foreach f, $(subdir-ymn), $(if $(wildcard $f/Makefile),$f)) + # build a list of files to remove, usually relative to the current # directory