wanted:  a simple way to transform the string (and its entries):

    -Ia -I/b -Ic -I/d

to

    -I/src/a -I/b -I/src/c -I/d

in short, wherever an entry represents a location that is *not*
fully-qualified, i want to replace that entry with one that is now
fully-qualified (and for which i will supply the appropriate prefix).

  is there a simple way to do with one "patsubst" operator?  i can see
a couple obvious ways with "foreach", but the tricky bit is that i'm
trying to invoke patsubst in places that *don't* match a given pattern
(that being "-I/").

  am i missing the hideously obvious?

rday

p.s.  and, yes, i do have a couple solutions, but i'm always after the
shortest and sweetest.
--


========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================


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

Reply via email to