fixed makefile to handle dependency update