Page MenuHomeFreeBSD

Add script to parse makefile include graph.
AbandonedPublic

Authored by jonathan on May 28 2016, 1:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 12:39 AM
Unknown Object (File)
Nov 23 2023, 3:29 PM
Unknown Object (File)
Oct 21 2023, 2:39 PM
Unknown Object (File)
Oct 19 2023, 11:20 PM
Unknown Object (File)
Oct 19 2023, 12:37 PM
Unknown Object (File)
Oct 17 2023, 3:31 PM
Unknown Object (File)
Oct 13 2023, 6:22 PM
Unknown Object (File)
Aug 4 2023, 7:41 AM
Subscribers

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 Passed
Unit
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.