That is the same problem I ran into a while ago. The current solution is appearantly to do "make srcclean" or something to remove all the generated files, including the dependency files.
I think that make depend always should succeed and not be dependant on Pike. If there is parts of the depend tree that depends on Pike, and Pike isn't built yet, and the system Pike is worthless, those dependency files should at least be cleared, or marked so that they get remade when Pike is built.
/ Mirar
Previous text:
2003-02-19 20:38: Subject: make depend (7.5 cvs)
Ok, so I ran into a problem because rusage.h has been renamed pike_rusage.h due to old dependencies. Thus I run "make depend". However this fails as well, because make depend compiles Pike. This is no good - make depend should make dependencies! I have to manually edit the 'dependencies' files.
How about using the method used by PExts instead - the configure process creates the dependencies. Works really well I think (does of course make configuration slower).
/ David Hedbor