Maybe on your way it cant hurt to checkout window's native idea of
whats an absolute path:
char *abspath(const char *in, char *out)
{
return in && GetFullPathName(in, MAX_PATH, out, NULL) ? out : NULL;
}
Looks simplicistic, but works.
With current directories c:\foo and d:\geez and current drive c:
$(abspath bar) -> c:\foo\bar
$(abspath c:bar) -> c:\foo\bar
$(abspath d:bar) -> d:\geez\bar
$(abspath \) -> c:\
> ... whereas the user _could_ have wanted the current directory when
> the result of $abspath is _used_
Hm, afaik expansion of relative paths with the "current directory when
they are used" is a built-in operating system service, so whoever
wants that would not use $abspath in the first place :P
_______________________________________________
Make-w32 mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/make-w32