This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch/rfc] Generate makefile dependencies
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Andrew Cagney <cagney at gnu dot org>
- Cc: gdb-patches at sources dot redhat dot com
- Date: 15 Mar 2004 13:52:55 -0500
- Subject: Re: [patch/rfc] Generate makefile dependencies
- References: <404BBFD6.1060702@gnu.org> <4055F42D.3020506@gnu.org>
Andrew Cagney <cagney@gnu.org> writes:
> 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)
Does the result in fact correctly record that mips-tdep.o depends upon
include/elf/reloc-macros.h?
I don't see that it would. But I haven't actually tried running it.
If you are going this route, have you considered simply using
automake's depcomp script? It is reportedly quite portable, and it is
the most reliable possible approach.
Ian