Re: [Qemu-devel] [PATCH] Makefile.hw: avoid overly large 'make clean' rm command

2012-06-22 Thread Stefan Hajnoczi
On Tue, Jun 19, 2012 at 03:55:38PM +0100, Peter Maydell wrote: > Avoid 'make clean' producing an 'rm' command which has a lot > of duplicate 'hw//*.o' arguments, by using $(sort $(dir ..)) > rather than $(dir $(sort ..)) so Make's sort function will > remove the duplicates for us. We can also remov

[Qemu-devel] [PATCH] Makefile.hw: avoid overly large 'make clean' rm command

2012-06-19 Thread Peter Maydell
Avoid 'make clean' producing an 'rm' command which has a lot of duplicate 'hw//*.o' arguments, by using $(sort $(dir ..)) rather than $(dir $(sort ..)) so Make's sort function will remove the duplicates for us. We can also remove the double '//' safely because $(dir ..) is guaranteed to return a st