From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25752 invoked by alias); 27 Jun 2008 10:23:07 -0000 Received: (qmail 25741 invoked by uid 22791); 27 Jun 2008 10:23:07 -0000 X-Spam-Check-By: sourceware.org Received: from s200aog10.obsmtp.com (HELO s200aog10.obsmtp.com) (207.126.144.124) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 27 Jun 2008 10:22:41 +0000 Received: from source ([164.129.1.35]) (using TLSv1) by eu1sys200aob010.postini.com ([207.126.147.11]) with SMTP; Fri, 27 Jun 2008 10:22:30 UTC Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 3CC42DAA1; Fri, 27 Jun 2008 10:22:26 +0000 (GMT) Received: from mail1.bri.st.com (mail1.bri.st.com [164.129.8.218]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id ED11C4C031; Fri, 27 Jun 2008 10:22:25 +0000 (GMT) Received: from [164.129.12.194] (bri0669.bri.st.com [164.129.12.194]) by mail1.bri.st.com (MOS 3.8.7a) with ESMTP id CKJ41284 (AUTH stubbsa); Fri, 27 Jun 2008 11:22:25 +0100 (BST) Message-ID: <4864BF63.5010904@st.com> Date: Fri, 27 Jun 2008 10:23:00 -0000 From: Andrew STUBBS User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: tromey@redhat.com Cc: gdb@sourceware.org Subject: Re: Automatic dependency tracking References: <200806152203.14626.pedro@codesourcery.com> <20080616012617.GA8944@caradoc.them.org> <20080625182858.GA25575@caradoc.them.org> <486365E5.50601@st.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-06/txt/msg00293.txt.bz2 Tom Tromey wrote: > '-include', and probably order-only dependencies. > 'ifeq' makes it a bit friendlier too, and sometimes new-style pattern > rules (depending on details in the Makefile that I don't remember > right now). ... > But with order-only dependencies I would just write: > $(all_objects): | $(generated_headers) OK, I understand now. Presumably it would still be possible to retain non-GNU make compatibility for build-only purposes by also providing a regular dependency - basically just removing the bar from the above - and then preprocessing the Makefile, like AM_CONDITIONAL? I don't know if it's worth it though. Like Daniel said, GNU make isn't hard to build, and other projects already require it. Auto dependency tracking would be very nice to have though. :) Andrew