better error reporting in makefile