I need the current working directory from nmake for the directory it is currently building in to be used in a makefile. Is there some kind of built-in macro for this?
According to the docs,
MAKEDIR Current directory when Nmake.exe was invoked.
may be what you want.