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


Alexandre Oliva writes:
 > On Mar 21, 2000, Alex Hornby <alex@anvil.co.uk> wrote:
 > 
 > > I would like to ensure that Foo_[sc].hh and Foo_[sc].cpp are present
 > > before Foo_impl.cpp is built for the first time.
 > 
 > How about just creating standard Makefile dependencies?
 > 
 > Foo_impl.o: Foo_s.hh Foo_c.hh Foo_s.cpp Foo_c.cpp
 > Foo_impl.$(OBJEXT): Foo_s.hh Foo_c.hh Foo_s.cpp Foo_c.cpp
 > 

That would work. I wanted to avoid adding dependencies manually
because a) I'm lazy :) and b) parallel builds are somewhat
non-deterministic so I could never be sure we'd covered them all.

Perhaps I could use automake --include-deps --no-force to add the auto
generated dependencies to the Makefile.in(s) and them check those into
our CVS repository (current Makefile.in is ignored as we consider it
derived from Makefile.am). The side effect of this is the usual for
generated files in CVS - conflicts and inconsistencies.

Alex.


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