[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 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 <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
- substr, PATTON, BILLY \(SBCSI\), 2006/05/18
- Re: substr,
Paul D. Smith <=