[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: bug with multiple targets in pattern rules?
From: |
Reich, Hannes |
Subject: |
RE: bug with multiple targets in pattern rules? |
Date: |
Fri, 27 Jun 2003 10:59:06 +0100 |
> Paul D. Smith [mailto:address@hidden said:
> %% Mike Gibson <address@hidden> writes:
>
> mg> The behavior you're getting is correct. When you list two
> mg> targets, it isn't just for convienience so you don't
> have to type
> mg> the rule twice. If a rule creates both targets for some reason,
> mg> you only want the rule to run once. This is for rules
> that create
> mg> multiple files.
>
> Note the above is only true for _pattern rules_. Explicit rules work
> the opposite way: multiple targets means each target is built
> individually using the listed prerequisites and command script.
>
Ah, that's what was confusing me. I'll use the method suggested by Mike,
and try to RTFM more diligently in future. Many thanks for your help.
/Hannes