---
name: "make2graph"
section: "1"
platform: "linux"
package: "makefile2graph"
version: "2021.11.06-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/make2graph"
---

# make2graph(1)

Creates a graph of dependencies from GNU-Make

## NAME

makefile2graph - Creates a graph of dependencies from GNU-Make

## SYNOPSIS

make -Bnd \| make2graph \> output.dot

## DESCRIPTION

Creates a graph of dependencies from GNU-Make; Output is a graphiz-dot file or a Gexf-XML file. sub-makefiles are not supported.

## OPTIONS

- **-f**

  formats :(x) XML output (gexf), (E) print a list of deepest targets, (l) print a list of targets, (d) dot output (default)

- **-b**

  print file basename

- **-s**

  print file extension

- **-r**

  show root node

- **-v**

  print version

## SEE ALSO

[makefile2graph(1)](/makefile2graph/1.md), [make(1)](/make/1.md), [dot(1)](/dot/1.md)

## AUTHOR

Pierre Lindenbaum (@yokofakun)
