From patchwork Wed Jun 20 13:54:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 166080 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id EBECCB6FB4 for ; Wed, 20 Jun 2012 23:55:22 +1000 (EST) Received: from localhost ([::1]:35859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShLNQ-0007gs-GQ for incoming@patchwork.ozlabs.org; Wed, 20 Jun 2012 09:55:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33319) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShLNJ-0007dd-3O for qemu-devel@nongnu.org; Wed, 20 Jun 2012 09:55:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShLNC-000647-NO for qemu-devel@nongnu.org; Wed, 20 Jun 2012 09:55:12 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:60926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShLNC-0005oP-99 for qemu-devel@nongnu.org; Wed, 20 Jun 2012 09:55:06 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1ShLN2-0004Sf-8Q; Wed, 20 Jun 2012 14:54:56 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Date: Wed, 20 Jun 2012 14:54:56 +0100 Message-Id: <1340200496-17126-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 81.2.115.146 Cc: Paolo Bonzini , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Anthony Liguori Subject: [Qemu-devel] [PATCH] Makefile.target: Update clean command to clean hw/ directory X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Now we create object files in a hierarchy under hw/, so the 'clean' target must also 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 --- Makefile.target | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.target b/Makefile.target index 550d889..686ba8d 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 $(shell find . -name '*.[od]') rm -f hmp-commands.h qmp-commands-old.h gdbstub-xml.c ifdef CONFIG_TRACE_SYSTEMTAP rm -f *.stp