make shmake
Posted Feb 22, 2007 19:32 UTC (Thu) by
oak (subscriber, #2786)
In reply to:
make shmake by ldo
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
deps: $(SRCFILES)
gcc $(CPPFLAGS) -MM $^ > deps
-include deps
(
Log in to post comments)