Don't be silly.
Make the dependency file itself depend on all the files it describes, and
add a makefile rule to re-generate it. Poof, problem gone.
> Dependencies _do_ change when your .config changes,
Only if you do them wrong. Look at mkdep.c - it statically determines the
complete list of header files that _can_ be included, and does not care at
all about what config options there are.
> that are included varies. gcc -MD gets this exactly right, gcc knows
> which files it read.
Bzzt, it knows the subset of files to read, nothing more.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/