title: how to get the output of a command when using Microsoft nmake?
body: <p>With <code>make</code> on linux, we can do things like:</p>
  
  <pre><code>foo=$(shell /bin/bar)
  </code></pre>
  
  <p>which runs the command <code>bar</code> and assigns the output to <code>foo</code>.  This can later be used in the makefile by referencing <code>$(foo)</code>.</p>
  
  <p>But now I have a Microsoft project on my hands that is compiled and linked with the Microsoft <code>nmake.exe</code>.  Is there an equivalent thing for nmake that would allow me to run a command and assign the output to a variable?</p>