title: How can I trap errors and interrupts in GNU make?
body: <p>I'm wondering if there's a way to implement <code>trap</code> in GNU <code>make</code>, similar to that built into <code>BASH</code>?</p>
  
  <p>If the user presses <code>CTRL-C</code>, or if <code>make</code> itself fails (non-zero exit), I'd like to call a particular target or macro.</p>