What is wrong in this simple Makefile

Posted by Walidix on Stack Overflow See other posts from Stack Overflow or by Walidix
Published on 2010-05-09T22:58:33Z Indexed on 2010/05/09 23:08 UTC
Read the original article Hit count: 190

Filed under:
SRC_VAR = test string for variable manipulation.

TEST1_VAR = $(subset for,foo,${SRC_VAR})

all: 
    @echo original str: ${SRC_VAR}
    @echo substitution: ${TEST1_VAR}

This is the output:

original str: test string for variable manipulation.

substitution:

The output should be:

original str: My test string for variable manipulation.

substitution: My test string foo variable manipulation.

© Stack Overflow or respective owner

Related posts about makefile