[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: function call arguments
From: |
Semen Trygubenko |
Subject: |
Re: function call arguments |
Date: |
Wed, 27 Apr 2011 12:06:38 +0100 |
2011/4/27 ali hagigat <address@hidden>:
> 8.1 Function Call Syntax
> Commas and unmatched parentheses or braces cannot appear in the text
> of an argument
> written;
> -------------------------------
> var= this,is a text
> all: ;
> var1=$(subst this,that,$(var))
> $(warning $(var1))
>
> makefile28:4: that,is a text
> make: `all' is up to date.
> ---------------------------------
> Why "," was used successfully then?
Because "," appears in the right hand side of a variable "var"
definition and not in the argument to $(subst ) function.
If you were to write $(subst this,that,this,is a text) "this,is a
text" will be parsed as two arguments to $(subst ) function because
of "," delimiter ...
HTH
--
Семен