Fix .depend files to work for build tools.
This is somewhat of a follow-up to r335746.
MFC after: 2 weeks Sponsored by: DellEMC