title: Is it possible to set Environment variables in Makefile - to be used after
body: <p>I am trying to set an Environment variable in a Makefile, so it can be used  in another program running in the sam shell as <code>make</code>, but after <code>make</code> has run.</p>
  
  <p>Update: This is not possible according to accepted answer with comments.</p>
  
  <p>Steps:</p>
  
  <ol>
  <li>run <code>make test</code> setting env: <code>export TEST_ENV_ONE=OneString</code></li>
  <li>run another program, that can read <code>TEST_ENV_ONE</code></li>
  </ol>
  
  <p>Tried this:</p>
  
  <p>Not working:</p>
  
  <pre><code>test:
      export TEST_ENV_ONE=OneString
      $(shell export TEST_ENV_TWO=TwoString)
  </code></pre>
  
  <p>Afterwards this is empty:</p>
  
  <pre><code>echo $TEST_ENV_ONE
  echo $TEST_ENV_TWO
  </code></pre>