help-make
[Top][All Lists]
Advanced

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

RE: Multiple targets via a single process (when using multiple jobs)


From: Frank Dicostanzo
Subject: RE: Multiple targets via a single process (when using multiple jobs)
Date: Wed, 5 Jun 2002 16:56:26 -0400

Thanks for your response.

I don't immediately see any patterns that are applicable however I will review 
the section again.

Frank


-----Original Message-----
From: Paul D. Smith [mailto:address@hidden
Sent: Wednesday, June 05, 2002 4:45 PM
To: Frank Dicostanzo
Cc: address@hidden
Subject: Re: Multiple targets via a single process (when using multiple
jobs)


%% "Frank Dicostanzo" <address@hidden> writes:

  fd> I would like to specify that a single operation creates multiple
  fd> files.
 
  fd> target1 target2 target3: dep1 ...
  fd>         create-targets...

If your targets are all related by a pattern you can define a pattern
rule with multiple target patterns (see the GNU make manual):

  %1 %2 %3 : ...

This behaves as you want.
 
  fd> I am thinking that the only way to do it is to create a virtual
  fd> file which represents the multiple targets and make the targets1-3
  fd> dependant upon it. Its construction would then create the
  fd> targets. Is there a more direct way?

Not for targets which are unrelated via a pattern.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "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]