title: How to stop make (in makefile) after "No such file or directory" error?
body: <p>So, most of the times I'm testing if every include is correct on a given C/C++ code, I have a makefile with a gcc/g++ call with proper -I option for searching headers on specific directories (like every program) when I'm <strong>compiling</strong> sources to headers.</p>
  
  <p>However, if the included directory is not correct and an undefined header appears (e.g. foo.h has #include  and was not found), the gcc/g++ will just spit a bunch of errors for every include I have of that foo.h header for all other sources I'm compiling afterwards (and I'm already using -Werror -Wfatal-errors to make gcc/g++ to stop).</p>
  
  <p>So, my question is simple: how can I tell makefile stop after the first error of the type "No such file or directory" it finds? It is really annoying it continue to compile sources and sources, giving me hundreds of errors just for a repeated error I already understood.</p>