This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: derived sources and parallel builds
- To: Alex Hornby <alex at anvil dot co dot uk>
- Subject: Re: derived sources and parallel builds
- From: Tom Tromey <tromey at cygnus dot com>
- Date: Tue, 21 Mar 2000 08:37:55 -0800 (PST)
- Cc: automake at gnu dot org
- References: <14551.37876.418368.538135@prodigy.anvil.co.uk>
>>>>> "Alex" == Alex Hornby <alex@anvil.co.uk> writes:
Alex> This is a problem as Foo_real.cpp includes Foo_derived.h.
Alex> How can I get a result similar to the old BUILT_SOURCES, where
Alex> the commands to produce the derived source files for a target
Alex> are run _before_ the non derived source files of that target are
Alex> built?
Write dependencies that express what you mean:
Foo_real.o Foo_real.lo : Foo_derived.h
I agree this isn't ideal. Suggestions welcome, patches more so.
Alex> Is the solution to always make dependancies before a parallel
Alex> build commences?
No. We used to do that and it has undesirable consequences. (Well,
our implementation did. But I do think our present direction is the
better one.)
Tom