environment variable not set in makefile
<p>I want to trigger unit test and integration test in a Makefile, my current implementation is like this:</p>

<pre><code>all: unittest integration
unittest:
    $(ECHO) @echo 'Running unittest'
    @unset TYPE
    @nosetests
integration:
    $(ECHO) @echo 'Running integration test'
    @export TYPE=integration
    @nosetests
</code></pre>

<p>but I'm having problems with setting environment variables, when I run <code>make integration</code> , the <code>TYPE</code> environment variable would not be set, if I set the environment variable manually with <code>export TYPE=integration</code>, then I run <code>make unittest</code>, the environment variable would not be unset. How to solve this?</p>