This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: derived sources and parallel builds


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]