makefile fails when build fails