Proposal to add build graph output to GNU Make (2020)
jonasdn.blogspot.com
Proposal to add build graph output to GNU Make (2020)
1–10 of 40 posts
Re: Proposal to add build graph output to GNU Make (2020)
#2> The Android build system works by including all recipes to be built (programs / libraries / etc) using the GNU Make include directive, so that you end up with one giant Makefile that holds all rules for building the platform. Possibly to avoid the problems laid out in the paper Recursive make considered harmful.
The old build system (ndk-build) works like this.
Modern NDK applications are supposed to use CMake and Android's own build system is based on Soong.
Re: Proposal to add build graph output to GNU Make (2020)
#3I’ll try the fork.
Re: Proposal to add build graph output to GNU Make (2020)
#4Re: Proposal to add build graph output to GNU Make (2020)
#5Considering that all build systems must keep a dependency graph internally, it’s surprising how many of them make it incredibly difficult to inspect why things are being rebuilt. I don’t really get it either, I’ve talked to a lot of people and getting feedback on how the build system is doing its task is one of the biggest complaints I see (others are “what is the build system doing” and “why does this have the worst…
If you can get away with it use -rR to skip builtins, it makes the output of -d much nicer.
I usually end up running make with -rRd or -rRp when I want to inspect things. -d tells you why things happen and -p shows you what rules and variables are defined.
Re: Proposal to add build graph output to GNU Make (2020)
#6https://www.cmcrossroads.com/article/tracing-rule-execution-...
Re: Proposal to add build graph output to GNU Make (2020)
#7ISTR there was a thread about it here a few months ago.
Re: Proposal to add build graph output to GNU Make (2020)
#8Re: Proposal to add build graph output to GNU Make (2020)
#9Considering that all build systems must keep a dependency graph internally, it’s surprising how many of them make it incredibly difficult to inspect why things are being rebuilt. I don’t really get it either, I’ve talked to a lot of people and getting feedback on how the build system is doing its task is one of the biggest complaints I see (others are “what is the build system doing” and “why does this have the worst…
ninja -d explain
?Re: Proposal to add build graph output to GNU Make (2020)
#10Ive tried this before but with a complex build the graph is unwieldy and useless
That said, isn’t there some software to visualise dot files in a more sophisticated way than just generating a picture? It would be handy to be able to collapse/expand sub graphs in a GUI, for example.