Finishing up the Makefile for automatic examples testing

The file auto_exam has been modified to Makefile, and now the tests should stop at the first error