News for hackers. Stuff that matters.
Re:Proposal to add build graph output to GNU Make (2020) by kergonath on Monday January 10, 2022 @02:59AM (#29871780)
It’s probably more suited for the OP’s use case (a couple of files causing some re-building) because otherwise yeah, the build tree can be humongous.

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.

Re:Proposal to add build graph output to GNU Make (2020) by datashaman on Monday January 10, 2022 @03:44AM (#29872012)
Something like this could be handy. (Disclaimer: never used it)

https://pypi.org/project/pydot/

Re:Proposal to add build graph output to GNU Make (2020) by JNRowe on Monday January 10, 2022 @04:44PM (#29883088)
[Noting that you said GUI, and what I'm about to say isn't]

There's a lot more to Graphviz than just dot, as it comes with some really good filtering tools that people often seem to miss. You can achieve an awful lot with just bcomps/ccomps. And, when you're running queries gc is useful to see that you're heading down the right path.

Re:Proposal to add build graph output to GNU Make (2020) by kergonath on Monday January 10, 2022 @05:12PM (#29883509)
Yes, that could also be helpful to split a complicated build graph into more manageable pieces. I had a look at the tools available for an unrelated project a while ago; I probably need to see what’s available now. Hopefully the tools have progressed a bit.
Re:Proposal to add build graph output to GNU Make (2020) by jcranmer on Monday January 10, 2022 @11:04AM (#29876860)
There's a couple of interactive graph visualization software out there that could be used instead of static dot file generation.

(One of the advantages of DOT is that it's a pretty common de facto standard for describing graphs, so you can import it into most graph manipulation libraries and mangle it further using that.)