title: Compile several projects (with makefile), but stop on first broken build?
body: <p>I want to do <em>something</em> like:</p>
  
  <pre><code>for i in *
  do
      if test -d $i
      then
          cd $i; make clean; make; cd -;
      fi;
  done
  </code></pre>
  
  <p>And this works fine, but I want "break" the <code>for</code>-loop in case of a broken build.</p>
  
  <p>Is there a way to do this? Maybe some kind of <code>if</code>-statement, that can check for success of <code>make</code>?</p>