We are guaranteed to always have one input file, we are not guaranteed to always have one output file. Because of this invariant, I would be more in favor of basing the name of the dependency file on the input file rather than some subset of the output files.