Contents|Index|Previous|Next
Multiple targets in a rule

A rule with multiple targets is equivalent to writing many rules, each with one target, and all identical aside from that. The same commands apply to all the targets, but their effects may vary because you can substitute the actual target name into the command using ‘$@’. The rule contributes the same dependencies to all the targets also.

This is useful in two cases.


Top|Contents|Index|Previous|Next