> I need to support (GASP) *auto-generated* source files. Auto-generated > *header* files are NOT AN OPTION: the bloody wanker will fail while > generating dependencies of a not-yet-generated file - NO WAY to explain it
>From gcc(1) manpage: -MG In conjunction with an option such as -M requesting dependency generation, -MG assumes missing header files are generated files and adds them to the dependency list without raising an error. While hating make is often well-founded, perhaps you should be hating your in-house scripts and programs instead? Especially if they write errors to stdout instead of stderr - that surely is an entire class of hate all of its own. .Guy