title: Shell conditional in makefile
body: <p>Cant get this to work , tried everything for the conditional [] bash brackets quotes etc </p>
  
  <p>The   if  $$? != "0"  never matches but the $$? is non zero at times. Any ideas ? </p>
  
  <pre><code>test: testdrivers
  -@rc=0; \
     for file in $(TSTFILES); do  \
       ./$$file; \
       if  $$? != "0" ; then  \
       echo test fail;\
                   rc=`expr $$rc + 1` ;\
       fi \
      done; \
    echo; echo "Tests failed: $$rc"
  </code></pre>