Makefile: add error messages for undefined package or url