We have a makefile that is built last in our build process using Visual Studio to launch our unit tests. Unfortunately if the build fails the makefile is still processed and we have extra (annoying) errors. Any way to prevent that?

Example
Project A : build dummy.exe
Project B (makefile) : build command is : run dummy.exe /unittest

We want Project B to skip its build command when Project A has build errors. Thanks!