help-make
[Top][All Lists]
Advanced

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

Re: producing more than one target? (was: prerequisites of targets are n


From: Paul D. Smith
Subject: Re: producing more than one target? (was: prerequisites of targets are not made?|?]
Date: Fri, 3 Dec 2004 17:40:32 -0500

%% Alessandro Vesely <address@hidden> writes:

  av> Is there a generic mechanism for simultaneously producing more
  av> than one target?

There's a trick you can use, like this:

    foo: real.1
    bar: real.2

    real.1 real.2: .dummy

    .dummy:
            <Rule to create real.1 & real.2>
            @touch $@

  av> If not, does GNU make deserve one? Shall we discuss that here?

There was a proposal for a new kind of explicit rule syntax that allowed
you to define a rule as creating multiple targets at once.  It hasn't
been implemented though.

-- 
-------------------------------------------------------------------------------
 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]