help-make
[Top][All Lists]
Advanced

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

Re: confused about double-colon "terminal" rules


From: Paul D. Smith
Subject: Re: confused about double-colon "terminal" rules
Date: Fri, 3 Mar 2006 13:27:48 -0500

%% "Robert P. J. Day" <address@hidden> writes:

  rpjd> "One choice is to mark the match-anything rule as terminal by defining
  rpjd> it with a double colon.

  rpjd> so i have this trivial makefile:

  rpjd> t1::    hi
  rpjd>         @echo hi there

That's not a match-anything rule.  That's an explicit double colon
rule.  A match-anything rule is a pattern rule with no prefix or suffix:

    %:
            @echo "Hi!  I'll match anything!  Today I matched $@"

Or to make it terminal:

    %::
            @echo "Hi!  I'll match anything, terminally!  Today I matched $@"

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