Fixed missing makefile dependencies
Added script to generate deps