[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How separate a set of strings by ','?
From: |
Oleksandr Gavenko |
Subject: |
Re: How separate a set of strings by ','? |
Date: |
Tue, 30 Mar 2010 09:21:05 +0300 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 |
On 2010.03.30 8:47, Peng Yu wrote:
TXT:=a b c
Suppose I have the above set of strings, could somebody show me how to
convert it to the string a,b,c?
$ cat Makefile
var = 1 2 3
empty =
space = $(empty) $(empty)
comma = ,
$(error $(subst $(space),$(comma),$(var)))
$ make
Makefile:6: *** 1,2,3. Останов.
--
С уважением, Александр Гавенко.