summaryrefslogtreecommitdiff
path: root/examples/visual/README.md
blob: f497901259cfb950e5c7a49b27aa108cc1a50b70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# README

Creates a graph of dependencies from GNU-Make using [make2graph](https://github.com/lindenb/makefile2graph).

```console
git clone https://github.com/lindenb/makefile2graph.git
cd makefile2graph
make
./make2graph --version
```
```
1.5.0
```

Install `graphviz`.

```console
sudo apt update
sudo apt install -y graphviz
```

`make`

* -B, --always-make
    * Unconditionally make all targets.
* -n, --just-print, --dry-run, --recon
    * Print the commands that would be executed, but do not execute them (except in certain circumstances).
* -d
    * Print debugging information in addition to normal processing.

```console
make -Bnd | ./make2graph | dot -Tpng -o out.png
```

![](out.png)