On 12 Jul 2005 at 10:14 UTC-0700, Ted Stern wrote: > Hi all, > > What is the proper way to insert commas into each word of a GNU Make > variable? > > I want to change FOO something like this: > > FOO := a b c d e > FOO := $(patsubst %,-Wl,-y,%_,$(FOO)) > > to get > > -Wl,-y,a_ -Wl,-y,b_ -Wl,-y,c_ -Wl,-y,d_ -Wl,-y,e_ > > Somehow I need to comment the comma so that it is not interpreted as a > MAKE function argument separator. I don't see any reference to this > in the info pages. I'm using 3.80. > > Thanks, Ted
Answering my own question: I need to put the comma part into a variable. PREFIX := -Wl,-y, FOO := a b c d e FOO := $(patsubst %,$(PREFIX)%_,$(FOO)) Sorry for the noise! Ted -- Frango ut patefaciam -- I break so that I may reveal _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make