This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Plan for single Makefile
On 28 Jul 2001 03:18:42 +0100, Lars Hecking wrote:
>
> > top_src
> > \1a
> > \1a\2a
> > \1a\2b
>
> > Make in 2a will behave the way it does today, just building whats in
> > that dir and any dependencies, make in 1a will do a single-makefile
> > build of 1a and it's subdirs.
>
> You probably hit the nail on the head in terms of "correct approach",
> but I believe this would create massive problems for automake. It would
> require several passes when creating Makefile(.in)s.
It shouldn't require that much effort: build a set of rules for each
target Makefile, and when you add a rule from a directory, add it to all
the parent directories. Then at the end of a single pass you have all
the needed rules in all the output files.
Surely a similar process is used now for cross-directory dependencies?
Rob