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 14:38:07 -0400

%% "Reich, Hannes" <address@hidden> writes:

  rh> I have a makefile which says (in essence):

  rh> %.foo %.bar :
  rh>         touch $@

  rh> Now, I can't find a specific reference to pattern rules with
  rh> multiple targets in the manual,

Look in the section "Introduction to Pattern Rules", the paragraph that
begins "Pattern rules may have more than one target..."

  rh> but it seems reasonable to me that this would be
  rh> the same thing as writing:

  rh> %.foo :
  rh>         touch $@
  rh> %.bar :
  rh>         touch $@

Nope, it's not.

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