%% "PATTON, BILLY \(SBCSI\)" <[EMAIL PROTECTED]> writes:

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

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

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 <[EMAIL PROTECTED]>          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


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make
  • substr PATTON, BILLY \(SBCSI\)
    • Re: substr Paul D. Smith

Reply via email to