How can I capture the current directory as an absolute pathname in a make variable?

Posted by WilliamKF on Stack Overflow See other posts from Stack Overflow or by WilliamKF
Published on 2010-06-16T01:52:08Z Indexed on 2010/06/17 5:23 UTC
Read the original article Hit count: 214

Filed under:
|

I'd like to get the current directory during a GNUmake file run put into a make variable.

What is the syntax to do this? Something like this?

DIR := $(PWD)

© Stack Overflow or respective owner

Related posts about directory

Related posts about gnumakefile