mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 19:05:51 +01:00
kbuild: use scripts/Makefile.clean
This commit refactors cleaning targets such as clean, clobber, mrpropper, distclean with scripts/Makefile.clean. By using scripts/Makefile.clean, we can recursively descend into subdirectories and delete generated files there. We do not need add a big list of generated files to the "clean" target. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
This commit is contained in:
committed by
Tom Rini
parent
2887c47338
commit
efcf861931
2
scripts/Makefile
Normal file
2
scripts/Makefile
Normal file
@@ -0,0 +1,2 @@
|
||||
# Let clean descend into subdirs
|
||||
subdir- += basic
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user