Just make sure somefile.txt is in the valid nmake syntax and then !include . In this way:
c:>type somefile.txt PASSWORD=secret c:>type makefile !INCLUDE somefile.txt !MESSAGE Password is [$(PASSWORD)] c:>nmake -nologo Password is [secret]
source share