%% "Robert P. J. Day" <[EMAIL PROTECTED]> writes:
rpjd> as part of my multi-arch build, i need to convert a (probably)
rpjd> relative directory name to its full name. that is, if someone
rpjd> refers to "..", i need to get the full directory name of ".."
rpjd> this "function" seems to work:
rpjd> real-dir = $(shell cd ${1} ; echo $${PWD})
This is not portable; not all shells set or track the PWD environment
variable.
rpjd> cd to arg, then echo full dir name. is there a simpler or built-in
rpjd> way that's better?
If you're willing to limit your makefiles to newer versions of make you
can use the $(abspath ...) or $(abspath ...) functions.
--
-------------------------------------------------------------------------------
Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make