title: Force exit from a Makefile target without raising an error
body: <p>I work with a Makefile generated by an external tool (Netbeans), where I can not change the logic of the main target, but I am able to "inject" logic in a target that is executed before the actual build (.build-pre to be specific in Netbeans-generated Makefile)</p>
  
  <p>I would like for that target to conditionally terminate the make execution, but without raising an error. If I do </p>
  
  <pre><code>exit
  </code></pre>
  
  <p>inside the "pre" rule, nothing happens (I mean, the rule terminates, but make continues). If I add</p>
  
  <pre><code>exit 1
  </code></pre>
  
  <p>make will terminate, but it will return an error status.</p>
  
  <p>Is there a way to force make to exit in a clean way? I searched for make functions, but found only error/warn/info, but nothing like exit.</p>
  
  <p>Thanks in advance!</p>
  
  <p>EDIT: Based on comments it does not seem possible. Pity. </p>
  
  <p>For completeness, a more specific example of what I'd like to achieve:</p>
  
  <pre><code>default: pre
    @echo "Doing default"
  
  pre: 
    @echo "Doing pre"
  ifeq "$(SOME_VARIABLE)" "yes"
    exit 0
  fi
  </code></pre>
  
  <p>With Makefile like above, I'd like to be able for pre to execute, and conditionally prevent 'default' from executing, but still return 0 to the shell. </p>