Re:Make your own build system
by imtringued on Thursday March 08, 2018 @09:40AM
(#16544561)
That's the problem with make and why there are so many build systems built on top of it. Make alone isn't enough.
It actually doesn't handle this case at all unless you use a compiler (-MMD) or any other external tool to basically generate the makefile. Otherwise you have to manage the source files and header dependencies yourself.
[ Parent
| on HN ]
Re:Make your own build system
by lolikoisuru on Thursday March 08, 2018 @04:54PM
(#16548020)
It's out of scope for any general purpose DAG runner. Sure you can make a tool that can do that for language X, but make is used with a lot more than that. Make should not implement parsing of source code to find out what they include.