title: Single quoted string for sed in Makefile
body: <p>I am calling <code>sed</code> from my <code>Makefile</code>, and this line doesn't work:</p>
  
  <pre><code>sed -i -r 's|^(3)$|5|' file;
  </code></pre>
  
  <p>It's perfectly fine if I call from the terminal, but GNU make reports the following error:</p>
  
  <blockquote>
    <p>sed: -e expression #1, char 8:
    unterminated `s' command</p>
  </blockquote>
  
  <p>Any ideas how I can fix this, and could you provide any manual on how Makefile deals with strings? Thanks.</p>