This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: derived sources and parallel builds
>>>>> "Alex" == Alex Hornby <alex@anvil.co.uk> writes:
>> 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"?).
Alex> How about generating per executable/library hooks? That way both
Alex> the make all and make some-executable cases are covered.
This might be the best way to go.
It is sort of a pain to implement; for each such exe we'd have to do
this:
exe: dummy
build the exe
dummy:
$(MAKE) exe-hook
$(MAKE) actual dependencies for exe here
T