title: How to set pipefail in a Makefile
body: <p>Consider this Makfile: </p>
  
  <pre><code>all: 
      test 1 -eq 2 | cat
      echo 'done'
  </code></pre>
  
  <p>It will be executed with no error. </p>
  
  <p>I've heard of <code>set -o pipefail</code> that I may use like this:</p>
  
  <pre><code>all: 
      set -o pipefail;     \
      test 1 -eq 2 | cat;  \
      echo 'done'
  </code></pre>
  
  <p>Apart that it does not work, this writing is very painful. </p>
  
  <p>Another solution would be to use temporary files. I would like to avoid it. </p>
  
  <p>What other solution can I use?</p>