2011/4/27 ali hagigat <[email protected]>:
> I tested the following:
> all: ;
> var1=$(subst this,that,this is  a,      text)
> $(warning $(var1))
> makefile28:3: that is  a,      text
> make: `all' is up to date.

Ah ... $(subst ) is a built-in function that accepts "text" as its
third argument so "this is a,    text" is parsed as a single argument.
Try this ;) :

all: ;
mysubst=$(subst $1,$2,$3)
var1=$(call mysubst,this,that,this is  a,      text)
$(warning $(var1))

HTH,


-- 
Семен

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

Reply via email to