Makefile.hw: avoid overly large 'make clean' rm command
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 19 Jun 2012 14:55:38 +0000 (15:55 +0100)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Fri, 22 Jun 2012 09:34:21 +0000 (10:34 +0100)
commit30fd45adb2e54c7369505ac840907dc33a1078fa
tree23d10781f7f9de59da9c710fec55b1396ff6854b
parent4e1797f9a587ce39d1d67e25d73687eea7b1b04a
Makefile.hw: avoid overly large 'make clean' rm command

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 string
ending in '/'.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Makefile.hw