# Installer makefile2graph avec Homebrew, apt, Nix

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de makefile2graph pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:makefile2graph
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install makefile2graph
```

  Preuve: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install makefile2graph
```

  Preuve: Debian stable package indexes: makefile2graph from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#makefile2graph
```

  Preuve: nixpkgs package indexes: pkgs/by-name/ma/makefile2graph/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Faits du paquet

- **Clé du paquet:** brew:makefile2graph
- **Gestionnaire de paquets:** Homebrew
- **Version:** 2021.11.06
- **Résumé source:** Create a graph of dependencies from GNU-Make
- **Page d'accueil:** <https://github.com/lindenb/makefile2graph>
- **Dépôt:** <https://github.com/lindenb/makefile2graph>
- **Dernière mise à jour:** 2026-06-13T23:35:04+02:00
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- make2graph (alias)
- makefile2graph (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 2021.11.06
## Historique du projet et usages

makefile2graph is a small command-line tool that turns GNU Make's debug database output into dependency graphs.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 2014: GitHub repository is created.
- 2014: README history records fixes for GNU Make 4.0 output and early CLI options.
- 2014: 'deep' output is added for deepest independent targets.
- 2023: Graph, node, edge, and dirty attribute options are added.
- 2023: PlantUML and Mermaid output formats are added.

### Related projects

- GNU Make is the input source whose debug output makefile2graph parses.
- Graphviz/dot is the default graph output target.
- PlantUML and Mermaid are later text graph output targets.

### Sources

- <https://api.github.com/repos/lindenb/makefile2graph>
- <https://github.com/lindenb/makefile2graph>
- <https://raw.githubusercontent.com/lindenb/makefile2graph/master/README.md>


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Autres enregistrements de gestionnaires de paquets

- Debian apt - makefile2graph - 2021.11.06-1+b1: normalized package name match | Debian stable package indexes: makefile2graph from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | creates a graph of dependencies from GNU-Make | https://github.com/lindenb/makefile2graph
- Nix - makefile2graph: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/makefile2graph/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - makefile2graph - 2021.11.06-1: normalized package name match | Ubuntu 24.04 LTS package indexes: makefile2graph from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | creates a graph of dependencies from GNU-Make | https://github.com/lindenb/makefile2graph


## Combined YAML source

View the package source record on GitHub. [combined/makefile2graph.yml](https://github.com/mxcl/pkgdb/blob/main/combined/makefile2graph.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
