Makefile now detects dependencies