mkdep.pl: don't scan files until we know all the paths
commit3ffe8525e657aa94621b4b70fdf086efc5e63588
authorH. Peter Anvin <hpa@linux.intel.com>
Tue, 16 Aug 2016 21:47:19 +0000 (16 14:47 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 16 Aug 2016 21:47:19 +0000 (16 14:47 -0700)
tree9a1b1471b362a7292e11166d2656b424188eb521
parent43e026277bbed7004f774d06eac3fe977c8b979a
mkdep.pl: don't scan files until we know all the paths

Consistently identify dependencies by their path, not by their
basename.  This avoids missing indirect dependencies.  Furthermore, we
cannot start scanning files until we know the paths of all potential
targets.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
tools/mkdep.pl