PATTON, BILLY (SBCSI) wrote:
What is wrong?  I've looked at the examples using split and it looks
like I'm doing it right, but
${DEF} is empty

include gmsl

STR := abc_def_hij

DEF := $(word 2,$(call split,_,$(STR)))

all :
        echo "DEF = '${DEF}'"


Results:
gmake -f zz
echo "DEF = ''"
DEF = ''

I get

    echo "DEF = 'def'"
    DEF = 'def'


What version of GNU Make are you using?   What version of GMSL?

John.


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make
  • gmsl and split PATTON, BILLY \(SBCSI\)
    • Re: gmsl and split John Graham-Cumming

Reply via email to