help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug with multiple targets in pattern rules?


From: Paul D. Smith
Subject: Re: bug with multiple targets in pattern rules?
Date: Thu, 26 Jun 2003 16:21:38 -0400

%% 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.

Confusing, perhaps, but that's the way it is.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

[Prev in Thread] Current Thread [Next in Thread]