[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to add comma between strings?
From: |
Paul Smith |
Subject: |
Re: How to add comma between strings? |
Date: |
Tue, 18 May 2010 18:22:45 -0400 |
On Tue, 2010-05-18 at 16:48 -0500, Peng Yu wrote:
> TXT=a b c
>
> I have the above variable. I want convert $(TXT) to the string "a,b,c"
> (without the quote). Would you please let me know if it is possible in
> make?
Something like:
EMPTY :=
SPACE := $(EMPTY) $(EMPTY)
COMMA := ,
TXT = a b c
NEW = $(subst $(SPACE),$(COMMA),$(TXT))