makedep: Open files from the top-level directory as far as possible.