This sounds useful. Are you thinking a shell script, or an additional
make target which would do it only when asked? I guess the generation
of the dependencies should only be done when somebody "asks" for it, not
on each build. Otherwise you might give up the gains you expect.
I did this once a few years back, but am happy if somebody else can get
it done.