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: Paul D. Smith
Subject: [bug #35485] New $(.MFDIR) built-in variable
Date: Sun, 26 Feb 2012 23:28:33 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.77 Safari/535.7

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

I don't think this implementation is appropriate.  The value of "MFDIR" will
change wildly over time if makefiles are included which can't possibly be what
you want.  For example:


.MFDIR = $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
$(info MFDIR = $(.MFDIR))
include foo/bar.mk
$(info MFDIR = $(.MFDIR))
all:;:


will show:

MFDIR = /tmp
MFDIR = /tmp/foo
:


which doesn't seem like what you'd want.  In order to properly implement this,
it would need to be handled as a special variable that would be reset properly
as make started and stopped processing included makefiles.

Or maybe I'm misunderstanding what you're looking for... perhaps a more
specific definition would help.

    _______________________________________________________

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]