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
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 4153
Build 4196: arc lint + arc unit
jonathan retitled this revision from to Add script to parse makefile include graph..May 28 2016, 1:22 AM
jonathan updated this object.
jonathan edited the test plan for this revision. (Show Details)
jonathan added reviewers: bdrewery, rwatson, sjg.
jonathan updated this revision to Diff 17439.Jun 8 2016, 9:11 PM
  • 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.
jonathan abandoned this revision.Sep 1 2017, 6:40 PM