bug-make
[Top][All Lists]
Advanced

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

[bug #9062] Need access to pathname of Makefile


From: Paul D. Smith
Subject: [bug #9062] Need access to pathname of Makefile
Date: Mon, 3 Apr 2006 01:58:06 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060110 Debian/1.5.dfsg-4 Firefox/1.5

Follow-up Comment #10, bug #9062 (project make):

GNU make does not and has never supported a built-in variable $(PWD).

Of course, GNU make does now and has always (just like every other make)
imported environment variables exported from the invoking process into GNU
make variables, and some shells do set and maintain a $PWD environment
variable.

So if your shell is one of those, then you would see a $(PWD) variable in
make as well; but this is nothing GNU make is creating.  It's 100% dependent
on the feature set of the shell invoking GNU make (never a good idea for a
portable make environment!!)

If you use "make -p" so GNU make prints its database, it will tell you
exactly where every variable defined came from.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=9062>

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





reply via email to

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