I am doing something like this:
all: @SET /p filecontent= < somefile.txt @echo %filecontent%
However the filecontent
filecontent
Simply ensure somefile.txt is in acceptable nmake syntax, and then !include it. Thus:
somefile.txt
!include
c:>type somefile.txt PASSWORD=secret c:>type makefile !INCLUDE somefile.txt !MESSAGE Password is [$(PASSWORD)] c:>nmake -nologo Password is [secret]