bug-make
[Top][All Lists]
Advanced

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

[bug #35485] New $(.MFDIR) built-in variable


From: David Boyce
Subject: [bug #35485] New $(.MFDIR) built-in variable
Date: Thu, 09 Feb 2012 18:25:02 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.46 Safari/535.11

Follow-up Comment #1, bug #35485 (project make):

T Murphy says:

"I think that getting the directory of the current makefile is useful although
I am sure my team have had trouble with  $(abspath) and the way it works in
some situations on windows (unfortunately our stuff has to work on both)  - it
was something to do with which drive letter got stuck on to a relative path
(e.g. off the CWD)  to make it absolute and this possibly not always being the
drive letter you wanted.  This is unsubstantiated since my emails about that
are stuck in some old Lotus notes database."

To which I say:

A. There will be such corner cases. I have a similar one with Cygwin where we
must use cygpath -a -m instead of $(abspath) to translate Unix pathnames into
Windows style. But with that said, it's no worse having a shorthand. If
abspath is broken on Windows you need to hack around it either way, or fix it
in make.

B. It might be better to use realpath instead of abspath. The differences I
know of are that the path must exist and symlinks are resolved. In this case
the directory is already known to exist and resolving symlinks might be a
feature.

C. As noted, it's possible to implement this directly in C code instead which
might help work around issues with abspath.

D. Of course if abspath itself is really broken WRT drive letters then that
should be fixed, but that's outside scope here.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?35485>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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