On Tue, May 18, 2010 at 3:22 PM, Paul Smith <[email protected]> wrote:
> 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))

...which is almost a direct quote from the GNU make info pages.  Peng,
do you have access to the info pages?  Try running
    info make
or
    info 'gnu make'

and see if either gives you access to the documentation.  It seems
that most of the questions that you've asked here are answered
directly by that documentation.  Are you unable to access that
documentation?


Philip Guenther

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

Reply via email to