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))



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

Reply via email to