title: Can GNU make execute a rule whenever an error occurs?
body: <p>This is slightly different from <a href="https://stackoverflow.com/questions/15569228/can-a-makefile-execute-code-only-when-an-error-has-occurred">Can a Makefile execute code ONLY when an error has occurred?</a>.</p>
  
  <p>I'd like a rule or special target that is made whenever an error occurs (independent of the given target; without changing the rule for every target as the other answer seems to imply with the || operator).</p>
  
  <p>In <a href="http://www.openoffice.org/tools/dmake/dmake_4.6.html" rel="noreferrer">dmake</a> there is <em>special target</em> <strong>.ERROR</strong> that <em>is executed whenever an error condition is detected</em>. Is there a similar thing with GNU make?</p>
  
  <p>(I'm still using GNU make 3.81, but I didn't find anything in the documentation of the new GNU make 4.0 either)</p>