Page MenuHomeFreeBSD

Add script to parse makefile include graph.
AbandonedPublic

Authored by jonathan on May 28 2016, 1:22 AM.

Details

Summary

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

Repository
rS FreeBSD src repository - subversion
Lint
Lint OK
Unit
No Unit 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.