On Mon, 29 Mar 2004, Norman Gray wrote:
> > - is there an automake way to set up file dependencies? Currently if you
> > edit an include file everything gets rebuilt.
>
> Well, you can declare dependencies in the Makefile.am as usual, both
> through normal Makefile target:dependency rules, and (better) through the
> DEPENDENCIES primary -- as you know. The automake-generated makefiles
> also do fairly thorough generation of dependency information, which you
> can see in .deps/. I get the impression they deliberately produce very
> conservative dependencies, which is probably why things are being rebuilt
> more often than is strictly necessary.
>
> Rather confusingly, the dependency information is generated for C files,
> but not for Fortran.
>
I'm not confused at all since I'm assuming they just run the code through
the C preprocessor and look for the #include directives. Presumably code
would have to be written to allow autoconf et al to parse the Fortran
files and find all the INCLUDE directives. Can a script be inserted to do
that? [the .deps file format seems fairly straightforward]
--
Tim Jenness
JAC software
http://www.jach.hawaii.edu/~timj
|