help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to fully qualify entries in a "-I" list?


From: Robert P. J. Day
Subject: how to fully qualify entries in a "-I" list?
Date: Tue, 20 Nov 2007 06:02:11 -0500 (EST)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]