diff options
| author | Dave Tang <davetingpongtang@gmail.com> | 2026-06-22 20:12:06 +0900 |
|---|---|---|
| committer | Dave Tang <davetingpongtang@gmail.com> | 2026-06-22 20:12:06 +0900 |
| commit | 319f10b1f20170adf7efa05938b6bb23584c4729 (patch) | |
| tree | f3a680d1a91c232f4b71912dbca4581056ad8477 /examples/visual/README.md | |
GNU Make notes
Diffstat (limited to 'examples/visual/README.md')
| -rw-r--r-- | examples/visual/README.md | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/examples/visual/README.md b/examples/visual/README.md new file mode 100644 index 0000000..f497901 --- /dev/null +++ b/examples/visual/README.md @@ -0,0 +1,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 +``` + + |
