[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Makefile: Avoid explicit list of directories in
From: |
Daniel P. Berrange |
Subject: |
Re: [Qemu-devel] [PATCH] Makefile: Avoid explicit list of directories in clean target |
Date: |
Tue, 31 Jul 2012 15:38:34 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue, Jul 31, 2012 at 04:35:42PM +0200, Markus Armbruster wrote:
> Peter Maydell <address@hidden> writes:
>
> > On 31 July 2012 15:19, Markus Armbruster <address@hidden> wrote:
> >> Peter Maydell <address@hidden> writes:
> >>> + find . -name '*.[od]' | xargs rm -f
> >>> + rm -f *.a *.lo $(TOOLS) $(HELPERS-y) qemu-ga TAGS cscope.* *.pod
> >>> *~ */*~
> >>
> >> Shit happens if you somehow manage to create a "mean" file name in the
> >> build tree. Sure you don't want to -print0 | xargs -0?
> >
> > -print0 isn't POSIX, so I wasn't sure it would be present on all
> > our platforms. (It's probably fairly safe, though...)
>
> Another option is "-exec rm {} +".
Isn't using 'find' somewhat overkill here really. QEMU only creates
.o and .d files in 2 levels of directory, so sure we can just avoid
find entirely
rm -f *.[od] */*.[od]
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
- [Qemu-devel] [PATCH] Makefile: Avoid explicit list of directories in clean target, Peter Maydell, 2012/07/31
- Re: [Qemu-devel] [PATCH] Makefile: Avoid explicit list of directories in clean target, Stefan Hajnoczi, 2012/07/31
- Re: [Qemu-devel] [PATCH] Makefile: Avoid explicit list of directories in clean target, Markus Armbruster, 2012/07/31
- Re: [Qemu-devel] [PATCH] Makefile: Avoid explicit list of directories in clean target, Peter Maydell, 2012/07/31
- Re: [Qemu-devel] [PATCH] Makefile: Avoid explicit list of directories in clean target, Markus Armbruster, 2012/07/31
- Re: [Qemu-devel] [PATCH] Makefile: Avoid explicit list of directories in clean target,
Daniel P. Berrange <=
- Re: [Qemu-devel] [PATCH] Makefile: Avoid explicit list of directories in clean target, Peter Maydell, 2012/07/31
- Re: [Qemu-devel] [PATCH] Makefile: Avoid explicit list of directories in clean target, Stefan Weil, 2012/07/31
- Re: [Qemu-devel] [PATCH] Makefile: Avoid explicit list of directories in clean target, Peter Maydell, 2012/07/31
- Re: [Qemu-devel] [PATCH] Makefile: Avoid explicit list of directories in clean target, Stefan Weil, 2012/07/31
- Re: [Qemu-devel] [PATCH] Makefile: Avoid explicit list of directories in clean target, Blue Swirl, 2012/07/31
Re: [Qemu-devel] [PATCH] Makefile: Avoid explicit list of directories in clean target, Eric Blake, 2012/07/31