Avoid error file exits in makefile