macOS
brew install makefile2graphlocal Homebrew formula metadata
brew
Create a graph of dependencies from GNU-Make. Version 2021.11.06 via Homebrew; verified 2026-06-13.
install
brew install makefile2graphlocal Homebrew formula metadata
sudo apt install makefile2graphDebian stable package indexes · makefile2graph · source: deb.debian.org
nix profile install nixpkgs#makefile2graphnixpkgs package indexes · pkgs/by-name/ma/makefile2graph/package.nix · source: api.github.com
overview
Create a graph of dependencies from GNU-Make
history
makefile2graph is a small command-line tool that turns GNU Make's debug database output into dependency graphs.
The upstream repository was created in 2014 and the README history records active feature work starting in September 2014, including fixes for GNU Make 4.0 output, long options, basename and suffix handling, root node output, and version printing.
The README shows the tool widening beyond its original Graphviz/dot and GEXF XML output. It added a 'deep' output mode in December 2014, graph formatting controls in August 2023, and PlantUML and Mermaid output formats on August 30, 2023.
The official README describes a specific package-maintainer workflow: pipe 'make -Bnd' into make2graph, then feed dot output to Graphviz or emit XML, PlantUML, Mermaid, target lists, or deepest independent targets.
Its adoption evidence is mostly repository-level and use-case based rather than institutional. The README's cluster note for deepest independent targets shows the tool solving a real build-analysis problem for complex makefiles.
Typical usage is 'make -Bnd | make2graph > output.dot' or piping the result to Graphviz to render an image. Other formats include GEXF XML, Mermaid, PlantUML, all-target lists, and deepest independent target output.
The README notes an important parser constraint: make2graph only parses English messages from GNU Make, so users with another locale should set LC_ALL=C. It also states that sub-makefiles are not supported.
makefile2graph is the sort of tool package maintainers reach for when a makefile has become a dependency maze. It gives a visual or list-oriented view of what GNU Make thinks it is going to do.
It is also interesting because it depends on GNU Make's own debug output rather than reimplementing a makefile parser. That keeps the tool small, but ties it to GNU Make output format and locale.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
make2graph | cli | global executable | |
makefile2graph | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/lindenb/makefile2graph
install metadata
| Package key | brew:makefile2graph |
|---|---|
| Version | 2021.11.06 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/makefile2graph |
| Homepage | https://github.com/lindenb/makefile2graph |
| Repository | https://github.com/lindenb/makefile2graph |
| Upstream docs | https://github.com/lindenb/makefile2graph#readme |
| License | MIT |
| Source archive | https://github.com/lindenb/makefile2graph/archive/refs/tags/2021.11.06.tar.gz |
| Last updated | 2026-06-13T23:35:04+02:00 |
| Pulse | updated |
| Dependencies | graphviz |
| Bottle | available (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | makefile2graph |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
makefile2graph 2021.11.06-1+b1
creates a graph of dependencies from GNU-Make
https://github.com/lindenb/makefile2graph
sudo apt install makefile2graphmakefile2graph
nix profile install nixpkgs#makefile2graphmakefile2graph 2021.11.06-1
creates a graph of dependencies from GNU-Make
https://github.com/lindenb/makefile2graph
sudo apt install makefile2graphsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.