summaryrefslogtreecommitdiff
path: root/Makefile.hw
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2012-06-19 15:55:38 +0100
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2012-06-22 10:34:21 +0100
commit30fd45adb2e54c7369505ac840907dc33a1078fa (patch)
tree23d10781f7f9de59da9c710fec55b1396ff6854b /Makefile.hw
parent4e1797f9a587ce39d1d67e25d73687eea7b1b04a (diff)
downloadqemu-30fd45adb2e54c7369505ac840907dc33a1078fa.tar.gz
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>
Diffstat (limited to 'Makefile.hw')
-rw-r--r--Makefile.hw4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.hw b/Makefile.hw
index 2bcbaffb4f..28fe100fbe 100644
--- a/Makefile.hw
+++ b/Makefile.hw
@@ -19,8 +19,8 @@ all: $(hw-obj-y)
@true
clean:
- rm -f $(addsuffix /*.o, $(dir $(sort $(hw-obj-y))))
- rm -f $(addsuffix /*.d, $(dir $(sort $(hw-obj-y))))
+ rm -f $(addsuffix *.o, $(sort $(dir $(hw-obj-y))))
+ rm -f $(addsuffix *.d, $(sort $(dir $(hw-obj-y))))
# Include automatically generated dependency files
-include $(patsubst %.o, %.d, $(hw-obj-y))