Posted Feb 22, 2007 19:32 UTC (Thu) by oak
In reply to: make shmake
Parent article: The Road to KDE 4: CMake, a New Build System for KDE (KDE.News)
> The only kind of dependency it can express is a build-dependency.
> No provision for expressing other things, like include-dependencies.
As you found out, Make is not supposed to be a/b/c/d/e/f-language
pre-processor. You ask that kind of information from the compiler
of the corresponding language. With C-language and GCC compiler
you could use a rule like this:
# automatic include file dependencies
gcc $(CPPFLAGS) -MM $^ > deps
to post comments)