From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShOIo-0002io-0A for qemu-devel@nongnu.org; Wed, 20 Jun 2012 13:02:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShOIh-0001Tt-N5 for qemu-devel@nongnu.org; Wed, 20 Jun 2012 13:02:45 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:32865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShOIh-0001Tg-Fi for qemu-devel@nongnu.org; Wed, 20 Jun 2012 13:02:39 -0400 From: Peter Maydell Date: Wed, 20 Jun 2012 18:02:33 +0100 Message-Id: <1340211753-17326-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH] Makefile.target: Update clean command to clean hw/ directory List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Anthony Liguori , patches@linaro.org Now we create object files in a hierarchy under hw/, so the 'clean' target must also be updated to delete those object files. Rather than using a manual list of subdirectories which will easily drift out of date, we just delete all .o and .d files in the target directory hierarchy. Signed-off-by: Peter Maydell --- v1->v2: fixed missing "-f" option to rm, fixed grammar flub in commit message. Makefile.target | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.target b/Makefile.target index 550d889..6d60050 100644 --- a/Makefile.target +++ b/Makefile.target @@ -193,8 +193,8 @@ qmp-commands-old.h: $(SRC_PATH)/qmp-commands.hx $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@," GEN $(TARGET_DIR)$@") clean: - rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o - rm -f *.d */*.d tcg/*.o ide/*.o 9pfs/*.o kvm/*.o + rm -f *.a *~ $(PROGS) + rm -f $(shell find . -name '*.[od]') rm -f hmp-commands.h qmp-commands-old.h gdbstub-xml.c ifdef CONFIG_TRACE_SYSTEMTAP rm -f *.stp -- 1.7.1