From patchwork Wed Jun 20 17:02:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 9512 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 833FA23F28 for ; Wed, 20 Jun 2012 17:02:47 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 4DED5A18805 for ; Wed, 20 Jun 2012 17:02:47 +0000 (UTC) Received: by yhpp61 with SMTP id p61so6487964yhp.11 for ; Wed, 20 Jun 2012 10:02:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=JT9QsidpTH/2C2UsvxNG+Hhgnn4dlv8IJMOtvdOpS0A=; b=HAPeokbC9jVaxQNZsT9HKeGRETTIHPQ/u/b/UjXuNU7ApM/DXU8F93RnyE1KqfcqpP W8pT3CUKkx92TkHqHE4ncrPO0mhQTdXPcNgM/mKpW/BwP+mvuSJDRP/u04jO7qRCqk9S C7W6uaT4BOYPVCUJCysm38GPnjNvvhuSm1JIACatJE3ViwpEjA6lYJ5jVFpDlH9b/s09 zC5P0v2ZZVOh7DRv75MBLHrPIsABvcF7dfywsStwmKmeeX4K/sUq94lAV+ZDNC2OKyfG zsiH6i35pZf7xp4hUA5bb6/e96Xri5nLNWodIOSze2/kmTDwux/lzc6tUwMmgX+5xNuJ 7l+A== Received: by 10.50.87.227 with SMTP id bb3mr5307606igb.57.1340211766455; Wed, 20 Jun 2012 10:02:46 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp190010ibb; Wed, 20 Jun 2012 10:02:45 -0700 (PDT) Received: by 10.180.109.194 with SMTP id hu2mr13491306wib.0.1340211763770; Wed, 20 Jun 2012 10:02:43 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [81.2.115.146]) by mx.google.com with ESMTPS id d63si86861wem.26.2012.06.20.10.02.42 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Jun 2012 10:02:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) client-ip=81.2.115.146; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1ShOIb-0004Vt-Ty; Wed, 20 Jun 2012 18:02:33 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: Anthony Liguori , Paolo Bonzini , =?UTF-8?q?Andreas=20F=C3=A4rber?= , patches@linaro.org Subject: [PATCH] Makefile.target: Update clean command to clean hw/ directory Date: Wed, 20 Jun 2012 18:02:33 +0100 Message-Id: <1340211753-17326-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 X-Gm-Message-State: ALoCoQkbemF5ObER7sQIXerj6/uzoZzE2RoPWmxjk9s/rsvU13Xg4bj89jL3VjfGZP3slddFTBBs 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