[U-Boot] [PATCH] Makefile: use find to simplify clobber and avoid some bash problem

Wolfgang Denk wd at denx.de
Wed Nov 12 23:03:39 CET 2008


Dear Jean-Christophe PLAGNIOL-VILLARD,

In message <1226513192-14724-1-git-send-email-plagnioj at jcrosoft.com> you wrote:
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> ---
> please try this on ubuntu
> 
> Best Regards,
> J.
>  Makefile |    5 ++---
>  1 files changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 884b634..212451f 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -3280,9 +3280,8 @@ clobber:	clean
>  	@rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
>  		$(obj)cscope.* $(obj)*.*~
>  	@rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
> -	@rm -f $(obj)tools/{crc32.c,env_embedded.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
> -	@rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h}
> -	@rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
> +	@find $(obj)tools -name "*" -type l -print | xargs rm -f
> +	@rm -f $(obj)tools/inca-swap-bytes
>  	@rm -f $(obj)cpu/mpc824x/bedbug_603e.c
>  	@rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
>  	@[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f

This will not help, we use the {...} syntax in other places, too.

Use bash.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The human race has one really effective weapon, and that is laughter.
                                                         - Mark Twain


More information about the U-Boot mailing list