makefile-graphviz-pm icon indicating copy to clipboard operation
makefile-graphviz-pm copied to clipboard

Lot of irrevelant Graphviz Object on `plot_all`

Open edouard-lopez opened this issue 11 years ago • 1 comments

Hi, I recently discover your package and after some tests I can get the reason why I got so many false-responses objects when plotting with the plot_all method compare to the plot() method.

plot() method

subtlex makefile all

plot_all method

subtlex makefile mk2gv-default

Perl Script

The complete Perl script is also available as a gist. Here is the core of it:

# plot the tree rooted at the 'install' goal in Makefile:
$gv = $parser->plot($target, 
    virtual_node_style => {
       shape => 'box',
       style => 'filled',
       fillcolor => 'blue',
    },
    trim_mode => 1
);  # A GraphViz object returned.
$gv->as_png($outfile.".png");

# plot the forest consists of all the goals in Makefile:
$gv = $parser->plot_all(); # no option support

Makefile

The parsed makefile is available as a gist.

Conclusion

Any suggestion on what is causing all this object to appear at the top of the graph ?

edouard-lopez avatar Apr 04 '14 16:04 edouard-lopez

@edouard-lopez I'm sorry I don't have the time to investigate issues in this Perl module. But I'm very willing to accept your patches and test cases for any issues :) Thank you!

agentzh avatar Apr 04 '14 19:04 agentzh