Received: from eggs.gnu.org ([140.186.70.92]:57021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYmlj-0003VC-LS for qemu-devel@nongnu.org; Thu, 08 Dec 2011 17:48:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYmli-0008Fw-Ie for qemu-devel@nongnu.org; Thu, 08 Dec 2011 17:48:47 -0500 Received: from gw.ac.upc.edu ([147.83.30.3]:37244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYmli-0008Fm-AO for qemu-devel@nongnu.org; Thu, 08 Dec 2011 17:48:46 -0500 Received: from localhost (unknown [84.88.53.92]) by gw.ac.upc.edu (Postfix) with ESMTP id 3B6596B02C9 for ; Thu, 8 Dec 2011 23:48:45 +0100 (CET) From: =?utf-8?b?TGx1w61z?= Vilanova Date: Thu, 08 Dec 2011 23:48:37 +0100 Message-ID: <20111208224837.21668.43444.stgit@ginnungagap.bsc.es> In-Reply-To: <20111208224750.21668.26153.stgit@ginnungagap.bsc.es> References: <20111208224750.21668.26153.stgit@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 03/10] Trivial changes to eliminate auto-generated files List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Llu=C3=ADs Vilanova --- Makefile | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 301c75e..506db1b 100644 --- a/Makefile +++ b/Makefile @@ -3,10 +3,14 @@ # Always point to the root of the build tree (needs GNU make). BUILD_DIR=3D$(CURDIR) =20 -GENERATED_HEADERS =3D config-host.h trace.h qemu-options.def +GENERATED_HEADERS =3D config-host.h qemu-options.def + +GENERATED_HEADERS +=3D trace.h ifeq ($(TRACE_BACKEND),dtrace) GENERATED_HEADERS +=3D trace-dtrace.h endif +GENERATED_SOURCES +=3D trace.c + GENERATED_HEADERS +=3D qmp-commands.h qapi-types.h qapi-visit.h GENERATED_SOURCES +=3D qmp-marshal.c qapi-types.c qapi-visit.c =20 @@ -226,10 +230,11 @@ clean: rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d net/*= .o net/*.d fsdev/*.o fsdev/*.d ui/*.o ui/*.d qapi/*.o qapi/*.d qga/*.o qg= a/*.d rm -f qemu-img-cmds.h rm -f trace/*.o trace/*.d - rm -f trace.c trace.h trace.c-timestamp trace.h-timestamp rm -f trace-dtrace.dtrace trace-dtrace.dtrace-timestamp + @# May not be present in GENERATED_HEADERS rm -f trace-dtrace.h trace-dtrace.h-timestamp - rm -f $(GENERATED_SOURCES) + rm -f $(foreach f,$(GENERATED_HEADERS) $(foreach h,$(GENERATED_HEADERS)= ,$(h)-timestamp),$(f) */$(f)) + rm -f $(foreach f,$(GENERATED_SOURCES) $(foreach h,$(GENERATED_SOURCES)= ,$(h)-timestamp),$(f) */$(f)) rm -rf $(qapi-dir) $(MAKE) -C tests clean for d in $(ALL_SUBDIRS) $(QEMULIBS) libcacard; do \