Mark Mitchell <[EMAIL PROTECTED]> writes: > Maybe cpplib could even be hacked to have a mode where (when > generating dependencies) it silently permits #include of an > non-existing file, considers it a dependency in the current > directory, and just keeps going? I have insufficient cpplib taste > to know whether or not that's a truly awful idea. :-)
As a matter of fact, this is very nearly what the existing "makedepend" program is doing. It is currently silently ignoring all missing #includes. This is the right thing for headers in /usr/include (which it is not bothering to search, given the incantation I posted) but not for generated headers. A possibility that I've considered is to add a cpplib callback for a missing #include, and give makedepend a list of file glob patterns for which the correct behavior is as you suggest. zw