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

Mike Frysinger vapier at gentoo.org
Wed Nov 12 19:19:20 CET 2008


On Wed, Nov 12, 2008 at 1:16 PM, Jerry Van Baren wrote:
> Jean-Christophe PLAGNIOL-VILLARD wrote:
>> -     @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
>
> My vote is (a) use bash specifically and keep the bashisms.

indeed.  brace expansion is prob one of my favorite features of bash ;).
-mike


More information about the U-Boot mailing list