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 = ''


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to