title: How to get pid of my make command in the Makefile?
body: <p>I want to use a temp directory that will be unique to this build. How can I get the pid of my make command in the Makefile?</p>
  
  <p>I tried:</p>
  
  <pre><code>TEMPDIR = /tmp/myprog.$$$$
  </code></pre>
  
  <p>but this seems to store <code>TEMPDIR</code> as <code>/tmp/myprog.$$</code> and then eval as a new pid for every command which refs this! How do I get one pid for all of them (I'd prefer the make pid, but anything unique will do).</p>
  
  <p>Thanks in advance.</p>