Improve dependencies to have make -j work

With this improvement, make -j works (previously it failed randomly because generated files were being deleted while being read).