I think in nmake, if I do this:
example : set value=77 echo %%value%%
As a result, 77 will be displayed on the console.
Is there a way to call a .cmd or .bat file that will affect the environment of the nmake.exe process? Suppose I put the set value=77 operator in a file called "setvalue.cmd". Then change the makefile to this:
example : setvalue echo %%value%%
I get:
%value%
Alternatively, if there is a way to set the macro in the command block, this will also work. Or a way to set the macro value from a batch file, even outside the batch block.
source share