fixed makefile so chained dependencies work