make2graph(1)

πŸ’– make2graph β€” the manual page, but make it a group chat πŸ’–

okay bestie, sit down, hydrate, because we're about to turn your GNU-Make dependency spaghetti into an actual picture 🌈 this is make2graph(1) and honestly? it's giving graph theory but make it cute.


✨ NAME ✨

makefile2graph</purl> β€” creates a graph of dependencies from GNU-Make. yes the page is called make2graph but the program is makefile2graph, iykyk, they're the same girl πŸ’…


🌸 SYNOPSIS 🌸

make -Bnd | make2graph > output.dot

that's it. that's the whole vibe. pipe it, catch it, redirect it. slay 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜•: makefile2graph creates a graph of dependencies from GNU-Make. you feed it make's output, it hands you back a whole visual of who depends on what.

the output is either a graphviz-dot file or a Gexf-XML file β€” your choice, your era, your aesthetic ✨

⚠️ real talk though: sub-makefiles are NOT supported. no cap. don't come for me, that's just how it is 😭

πŸŽ€ OPTIONS πŸŽ€

  • -f β€” the format flex πŸ’… here's the menu:
    • (x) β€” XML output, aka gexf
    • (E) β€” prints a list of the deepest targets (the final bosses πŸ‘‘)
    • (l) β€” prints a list of targets, periodt
    • (d) β€” dot output, and this is the default babe, if you don't pick, you get dot
  • -b β€” print the file basename
  • -s β€” print the file extension
  • -r β€” show the root node 🌱 main character energy fr fr
  • -v β€” print version πŸ“Œ

🌈 SEE ALSO 🌈

go read these too bestie, they're all icons in their own right:


πŸ’œ AUTHOR πŸ’œ

the one and only Pierre Lindenbaum (@yokofakun) β€” legend behaviour, honestly πŸ™Œ


πŸ’– that's the whole page bestie, go forth and graph πŸ’–

mwah πŸ’‹ β€” from the .1 manual, dated 17 Sept 2014. kiss kiss, stay hydrated, and remember: pipe responsibly 🧚✨