diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-06-13 14:17:19 +0200 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2014-06-13 14:59:52 +0200 |
commit | 664f2707246a53669f91a83d9cc094c26e3848f3 (patch) | |
tree | b58ad77547b7abd2f6bedfe5893a09f359f00a33 /package/network-manager | |
parent | 5c8526691cb3667fe83992b94075c8c5fecc4f2e (diff) | |
download | buildroot-664f2707246a53669f91a83d9cc094c26e3848f3.tar.gz buildroot-664f2707246a53669f91a83d9cc094c26e3848f3.zip |
Makefile: test if dot exists before using it in graph-depends
The 'graph-depends' logic uses the 'dot' program from Graphviz to draw
the dependency graph, but it doesn't check its existence before
starting the generation of the graph, which can lead to user confusion
as reported in:
http://lists.busybox.net/pipermail/buildroot/2014-June/099278.html
With this commit, we first test if the 'dot' program is available, and
if it's not, we error out with a clear error message:
$ make graph-depends
ERROR: The 'dot' program from Graphviz is needed for graph-depends
make: *** [graph-depends] Error 1
[Peter: send error message to stderr instead]
Reported-by: Dallas Clement <dallas.a.clement@gmail.com>
Cc: Dallas Clement <dallas.a.clement@gmail.com>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/network-manager')
0 files changed, 0 insertions, 0 deletions