Added dependency checking for makefile