proper error handling in package/Makefile