generate dependencies for a selected file