Page MenuHomeFreeBSD

Add script to parse makefile include graph.

Authored by jonathan on May 28 2016, 1:22 AM.
Referenced Files
Unknown Object (File)
Thu, May 30, 10:23 AM
Unknown Object (File)
May 13 2024, 1:46 PM
Unknown Object (File)
May 5 2024, 11:44 PM
Unknown Object (File)
Apr 25 2024, 2:11 AM
Unknown Object (File)
Apr 23 2024, 8:11 PM
Unknown Object (File)
Apr 23 2024, 9:33 AM
Unknown Object (File)
Dec 20 2023, 12:39 AM
Unknown Object (File)
Nov 23 2023, 3:29 PM



This script parses .include and other interesting lines in BSD makefiles
and outputs the result as a GraphViz .dot graph. This allows us to find,
e.g., where in the make system we have defined both CC and LOCALBASE
or both CTFCONVERT_CMD and custom suffix rules.

Diff Detail

rS FreeBSD src repository - subversion
Lint Passed
No Test Coverage
Build Status
Buildable 4153
Build 4196: arc lint + arc unit

Event Timeline

jonathan retitled this revision from to Add script to parse makefile include graph..
jonathan updated this object.
jonathan edited the test plan for this revision. (Show Details)
jonathan added reviewers: bdrewery, rwatson, sjg.
  • Generalize the metadata we can look for.
  • Don't output None attributes.
  • Normalize paths.
  • Give re-definitions a different shape from definitions.
  • Add more filename sanitizing.
  • Add flags to filter singletons and unconnected components.
  • Print the total number of files being parsed.