]> Git Repo - qemu.git/commitdiff
Makefile.hw: avoid overly large 'make clean' rm command
authorPeter Maydell <[email protected]>
Tue, 19 Jun 2012 14:55:38 +0000 (15:55 +0100)
committerStefan Hajnoczi <[email protected]>
Fri, 22 Jun 2012 09:34:21 +0000 (10:34 +0100)
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 <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
Makefile.hw

index 2bcbaffb4f23f1e16e4c142d3ece65e481b42d23..28fe100fbe331f7fec5efb3a80e2acfc5ed33005 100644 (file)
@@ -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))
This page took 0.028123 seconds and 4 git commands to generate.