title: How to get python script return value in Makefile?
body: <p>Can somebody help me to find a way to capture the return value from a python script in Makefile.I have a scenario where the source code is getting build through the Makefile and it should throw a build error when python script reruns a failure.</p>
  
  <p><strong>myMakefile.mak</strong></p>
  
  <p><code>python mySample.py &lt;arg1&gt; &lt;arg2&gt;</code> // Invoking python script here, How to get script's return value?</p>
  
  <p><strong>mySample.py</strong></p>
  
  <pre><code>SUCCESS 0
  FAIL 1
  
  if(true)
    exit(SUCCESS)
  else:
    exit(FAIL)
  </code></pre>
  
  <p>Thanks in advance.</p>