From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12483 invoked by alias); 8 Mar 2004 06:09:57 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 12475 invoked from network); 8 Mar 2004 06:09:56 -0000 Received: from unknown (HELO bilbo.inter.net.il) (192.114.186.18) by sources.redhat.com with SMTP; 8 Mar 2004 06:09:56 -0000 Received: from zaretski (pns03-199-151.inter.net.il [80.230.199.151]) by bilbo.inter.net.il (MOS 3.4.4-GR) with ESMTP id COP97442; Mon, 8 Mar 2004 08:08:58 +0200 (IST) Date: Fri, 19 Mar 2004 00:09:00 -0000 From: "Eli Zaretskii" To: Andrew Cagney Message-ID: <6137-Mon08Mar2004080725+0200-eliz@elta.co.il> CC: gdb-patches@sources.redhat.com In-reply-to: <404BBFD6.1060702@gnu.org> (message from Andrew Cagney on Sun, 07 Mar 2004 19:35:34 -0500) Subject: Re: [patch/rfc] Generate makefile dependencies Reply-to: Eli Zaretskii References: <404BBFD6.1060702@gnu.org> X-SW-Source: 2004-03/txt/msg00147.txt.bz2 Message-ID: <20040319000900.SHEqKIuaV0cJ_4bORK9_B6B3BziHQicoBh7huuDXwrQ@z> > Date: Sun, 07 Mar 2004 19:35:34 -0500 > From: Andrew Cagney > > The attached, er, hack, modifies configure.in so that all the Makefile > dependencies are generated during configure time: > > defs_h = ... > foo.o: foo.c $(defs_h) > > It exploits the fact that GDB's code base is very consistent in its use > of "foo.h" vs -- the former is assumed to be local, the latter > in a system library. Won't it be better to use "gcc -MM" when we compile with GCC? > Wonder how portable my SED is. Your Sed looks good to me.