[Top][All Lists]

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

Re: substr

From: Paul D. Smith
Subject: Re: substr
Date: Thu, 18 May 2006 13:56:16 -0400

%% "PATTON, BILLY \(SBCSI\)" <address@hidden> writes:

  pb> I'm trying to sub string on items for same variable
  pb> list := a.c b.c

  pb> $(warning $($($(list):.c=.o)

You can't use the :.=. syntax on anything but a variable reference.  It
cannot be used on a _VALUE_, as you are using it above.

    $(LIST:.c=.o)       # Yes
    $($(LIST):.c=.o)    # No!

Replace those with calls to the patsubst function.

 Paul D. Smith <address@hidden>          Find some GNU make tips at:            
 "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]