How do I define nmake macro from command line output?
- by Mike Atlas
I'd like to capture the output from a tool from the command line into an nmake macro.
If this were a normal command line script, it would look like this:
> MyTool.exe > output.txt
> set /P MyVariable=<output.txt
> echo %MyVariable%
However, I can't seem to find anything relevant in the nmake doc on macros that is relevant.
This is basically what I'd like to do, though:
target:
@call MyTool.exe > output.txt
# This doesn't work in .mak, unfortunately. Help!
@MyVariable=<output.txt