tech-toolchain archive

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

Re: make: modifier to run realpath() on variable?

On Wed, Apr 14, 2010 at 02:03:50PM -0700, Simon J. Gerraty wrote:
 > The next version of bmake will have a dependency on realpath()
 > so I'd like to be able to replace things like:
 > ${.PARSEDIR:C,.*,cd & \&\& 'pwd',:sh}
 > which is expensive if you have to do it 200k times
 > with:
 > ${.PARSEDIR:tA}
 > to convert .PARSEDIR to an absolute path.

Sounds like a good idea to me.

I generally recommend writing makefiles to never use absolute paths,
but that's not always possible.

Did I ever propose ${.PARSEDIR:<<} and ${.PARSEDIR:>>} for helping to
navigate with relative paths?

David A. Holland

Home | Main Index | Thread Index | Old Index