Ted Stern <[EMAIL PROTECTED]> writes: > Hi all,
Your post belongs to help-make, not bug-make. > > 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. Use an indirection: comma :=, FOO := $(patsubst %,-Wl$(comma)-y$(comma)%_,$(FOO)) -boris _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make