From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TP30i-0006hL-27 for qemu-devel@nongnu.org; Thu, 18 Oct 2012 23:12:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TP30h-0003Pc-73 for qemu-devel@nongnu.org; Thu, 18 Oct 2012 23:12:31 -0400 Received: from mail-oa0-f45.google.com ([209.85.219.45]:56239) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TP30h-0003PQ-0t for qemu-devel@nongnu.org; Thu, 18 Oct 2012 23:12:31 -0400 Received: by mail-oa0-f45.google.com with SMTP id i18so20234oag.4 for ; Thu, 18 Oct 2012 20:12:30 -0700 (PDT) Sender: fluxion Date: Thu, 18 Oct 2012 22:12:24 -0500 From: Michael Roth Message-ID: <20121019031224.GY16157@illuin> References: <1350076268-18461-1-git-send-email-mdroth@linux.vnet.ibm.com> <1350076268-18461-27-git-send-email-mdroth@linux.vnet.ibm.com> <507BDFD5.80201@redhat.com> <20121015163701.GU16157@illuin> <507D0AE1.80503@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <507D0AE1.80503@redhat.com> Subject: Re: [Qemu-devel] [PATCH v4 26/26] qidl: unit tests and build infrastructure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: kwolf@redhat.com, peter.maydell@linaro.org, aliguori@us.ibm.com, qemu-devel@nongnu.org, blauwirbel@gmail.com On Tue, Oct 16, 2012 at 09:21:05AM +0200, Paolo Bonzini wrote: > Il 15/10/2012 18:37, Michael Roth ha scritto: > > There is another way to do this (still using a "dummy" target) that is a > > bit less cryptic: > > > > QIDL-PP-%: %.c qidl.h ... > > > > > > %.o: QIDL-PP-% > > > > > > But make detects that QIDL-PP-% is an intermediate target and removes > > the *.qidl.c files after the build > > How so? Make does not even _know_ that %.qidl.c exists. Sorry, wasn't remembering things correctly. That's how I had things working *before* I'd switched to using qidl-generated subdirs, and it was actually this: %.qidl.c: %.c qidl.h ... %.o: %.c %.qidl.c which isn't doing anything special. This is actually what I ended up going back to in v5 due to some issues I noticed after fixing the bogus rm -f %.qidl.* call you caught. Using .SECONDARY: addresses the issue I had with it deleting intermediate (*.qidl.c) files. > > Paolo >