Tom Tromey writes:
 > >>>>> "Alex" == Alex Hornby <[EMAIL PROTECTED]> writes:
 > 
 > >> 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
 > 
 > Alex> That would work. I wanted to avoid adding dependencies manually
 > Alex> because a) I'm lazy :) and b) parallel builds are somewhat
 > Alex> non-deterministic so I could never be sure we'd covered them all.
 > 
 > Yep, it is a problem, and it gets larger the more auto-generated
 > headers you have.
 > 
 > I agree it would be nice to say "build these files before doing
 > anything else".  That's sort of a pain with make.  One idea would be
 > to introduce an "all-hook" which would be run before "all".  This
 > solves the common problem, but not the full one (what if the user runs
 > "make some-executable"?).
 > 
 > Tom

How about generating per executable/library hooks? That way both the
make all and make some-executable cases are covered.

Alex.

Reply via email to