simpler error handling in makefile