2010-05-09 7 views
1
SRC_VAR = test string for variable manipulation. 

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

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

Ceci est la sortie:Qu'est-ce qui ne va pas dans ce simple Makefile

original str: test string for variable manipulation. 

substitution: 

La sortie doit être:

original str: My test string for variable manipulation. 

substitution: My test string foo variable manipulation. 

Répondre

4

La commande de substitution est subst, pas subset.

+0

Merci pour votre aide – Walidix

Questions connexes