Fix make depend for things being built in subdirectories
authorRichard Levitte <levitte@openssl.org>
Sun, 4 Oct 2015 19:12:03 +0000 (21:12 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 5 Oct 2015 09:08:18 +0000 (11:08 +0200)
commit46f4d2bef6c11e024c29b78a835b433c472ed3cf
treee5ffe34d1576aeaf863aa1b8a08bc9c2f9a2505b
parent5f0580ccf126a4834a406423e15da5b8a8bdf993
Fix make depend for things being built in subdirectories

Some makedepend mechanisms remove all directory information in the
target, so a dependency can looks like this:

ssl3_record.o: record/ssl3_record.c

However, that doesn't quite suit us, our Makefile has us build
record/ssl3_record.o rather than ssl3_record.o.

To clear this up, a change to util/clean-depend.pl takes care of this
case by looking up the original file in the dependencies and restoring
the directory information from it.

Reviewed-by: Ben Laurie <ben@openssl.org>
util/clean-depend.pl