From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShOTJ-0006MO-1N for qemu-devel@nongnu.org; Wed, 20 Jun 2012 13:13:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShOTC-0004ls-Qg for qemu-devel@nongnu.org; Wed, 20 Jun 2012 13:13:36 -0400 Received: from mail-bk0-f45.google.com ([209.85.214.45]:63322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShOTC-0004lV-Jq for qemu-devel@nongnu.org; Wed, 20 Jun 2012 13:13:30 -0400 Received: by bkwj10 with SMTP id j10so6821167bkw.4 for ; Wed, 20 Jun 2012 10:13:27 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1340211753-17326-1-git-send-email-peter.maydell@linaro.org> References: <1340211753-17326-1-git-send-email-peter.maydell@linaro.org> Date: Wed, 20 Jun 2012 18:13:27 +0100 Message-ID: From: Peter Maydell Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [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_F=C3=A4rber?= , Anthony Liguori , patches@linaro.org This is v2, obviously -- I forgot to change the [PATCH] prefix :-( -- PMM On 20 June 2012 18:02, Peter Maydell wrote: > 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. > > =C2=A0Makefile.target | =C2=A0 =C2=A04 ++-- > =C2=A01 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 > =C2=A0 =C2=A0 =C2=A0 =C2=A0$(call quiet-command,sh $(SRC_PATH)/scripts/hx= tool -h < $< > $@," =C2=A0GEN =C2=A0 $(TARGET_DIR)$@") > > =C2=A0clean: > - =C2=A0 =C2=A0 =C2=A0 rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o > - =C2=A0 =C2=A0 =C2=A0 rm -f *.d */*.d tcg/*.o ide/*.o 9pfs/*.o kvm/*.o > + =C2=A0 =C2=A0 =C2=A0 rm -f *.a *~ $(PROGS) > + =C2=A0 =C2=A0 =C2=A0 rm -f $(shell find . -name '*.[od]') > =C2=A0 =C2=A0 =C2=A0 =C2=A0rm -f hmp-commands.h qmp-commands-old.h gdbstu= b-xml.c > =C2=A0ifdef CONFIG_TRACE_SYSTEMTAP > =C2=A0 =C2=A0 =C2=A0 =C2=A0rm -f *.stp > -- > 1.7.1