Documentation
¶
Overview ¶
Package makefileextractor provides an extractor for Makefile and .mk files. It parses make targets, dependencies, and include directives to produce nodes and edges representing the build graph.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MakefileExtractor ¶
type MakefileExtractor struct{}
MakefileExtractor extracts nodes and edges from Makefiles.
func NewMakefileExtractor ¶
func NewMakefileExtractor() *MakefileExtractor
NewMakefileExtractor creates a new MakefileExtractor instance.
func (*MakefileExtractor) CanHandle ¶
func (e *MakefileExtractor) CanHandle(path string) bool
CanHandle returns true for files named Makefile, makefile, or *.mk.
func (*MakefileExtractor) Extract ¶
func (e *MakefileExtractor) Extract(ctx context.Context, opts types.ExtractOptions) (*types.ExtractResult, error)
Extract parses Makefile targets and produces nodes and edges.
func (*MakefileExtractor) Name ¶
func (e *MakefileExtractor) Name() string
Name returns the identifier for this extractor.
Click to show internal directories.
Click to hide internal directories.