Re: [patch/rfc] Generate makefile dependencies

Ian Lance Taylor
2004-03-15T18:53:05Z

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