Fri 31 Jan 2003 08:19:25 AM UTC, comment #3:
Paul.
Thanks for your reply.
"Oh dear."
Of course without parallel building, make presumably (re-)checks target fooB before trying to fire its rule. Certainly, the rule only gets run once.
My first response was (please ignore it): I cannot see the expected behaviour (with -j) being useful under any circumstances. [snip]
Anyway, I found this in the manual (Multiple Targets):
bigoutput littleoutput : text.g
generate text.g -$(subst output,,$@) > $@
I suppose it is a bit much to ask Make to work out that this can be run in parallel, but my example cannot.
Is there a FAQ that covers this sort of thing? Something like this perhaps.
realtarget1 realtarget2: dummytarget
dummytarget: realdep1 realdep2
rule to make realtargets
touch dummytarget
It this works, would it be worth adding to the manual page?
Giuliano.
|