This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Automatic dependency tracking
- From: Daniel Jacobowitz <drow at false dot org>
- To: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- Cc: gdb at sourceware dot org, tromey at redhat dot com
- Date: Sun, 29 Jun 2008 10:41:51 -0400
- Subject: Re: Automatic dependency tracking
- References: <200806152203.14626.pedro@codesourcery.com> <u3anel69s.fsf@gnu.org> <20080616012617.GA8944@caradoc.them.org> <g35201$2uf$2@ger.gmane.org> <m33an413yx.fsf@fleche.redhat.com> <20080625182858.GA25575@caradoc.them.org> <200806281920.m5SJKAQI008684@brahms.sibelius.xs4all.nl>
On Sat, Jun 28, 2008 at 09:20:10PM +0200, Mark Kettenis wrote:
> > Option three: we could manually list dependencies on generated files,
> > and support dependencies on source files only on systems with GNU
> > make. This effectively means GNU make is a requirement if you are
> > hacking on GDB, but not to build GDB from a clean tree.
>
> Given the way CVS handles time stamps on checkouts, this probably gets
> me in the same situation as above.
Could you elaborate? I don't think I understand the problem.
What I had in mind was having configure detect GNU Make and
enable/disable (equivalent of AM_CONDITIONAL) the dependency
tracking code in the generated Makefile. So timestamps shouldn't
matter; the only new failure mode is that if you modify a header,
the source files including it might not be automatically rebuilt.
--
Daniel Jacobowitz
CodeSourcery