How can I produce the functionality of the perl function join() in gmake.

I have a list of directories:

    A = /usr/bin /bin

and I want this:

    A = /usr/bin:/bin

I could do this in perl:

    $A = join(':', $A);

Something like this I thought would work in gmake, but doesn't seem to:

    A := $(subst  ,:,$(A))

The info page on text functions gives an example going the other direction
for VPATH:

    $(subst :, ,$(VPATH))

but doesn't say how to do what I want.

Do I have to resort to $(shell echo $(A) | sed 's/ /:/g')?

Michael Sterrett
  -Mr. Bones.-
[EMAIL PROTECTED]


_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make
  • join? Michael Sterrett -Mr. Bones.-

Reply via email to