graph-depends: support calling from recursive make
authorArnout Vandecappelle <arnout@mind.be>
Mon, 23 Jun 2014 20:11:23 +0000 (22:11 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 29 Jun 2014 08:43:37 +0000 (10:43 +0200)
commitb82f66cf404ef74509212de0d035737c75c5e6d6
tree822541677507559af601b1d3a94d7927bb6c5b25
parentfa9f824c3824ef41f6c377297f8bfe9a7b763ca6
graph-depends: support calling from recursive make

The graph-depends script calls make. If the outer make was called
recursively, or if it was called with '-C <somedir>', then the
environment will contain "MAKEFLAGS=w --". Therefore, the recursive
make prints 'Entering' and 'Leaving' messages, which clobbers the
output for dot.

To avoid this, add "--no-print-directory" to the recursive make
arguments. Since we require GNU make 3.81, we can be sure that this
option is available.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/scripts/graph-depends