GraphViz::Makefile - Create Makefile graphs using GraphViz
use GraphViz::Makefile; my $gm = GraphViz::Makefile->new(undef, "Makefile"); $gm->generate("makefile-rule"); open(O, ">makefile.ps") or die $!; binmode O; print $gm->GraphViz->as_ps; close O;
Create a GraphViz::Makefile object. The first argument should be a GraphViz object or undef. In the latter case, a new GraphViz object is created by the constructor. The second argument should be a Make object, the filename of a Makefile, or undef. In the latter case, the default Makefile is used. The third argument $prefix is optional and can be used to prepend a prefix to all rule names in the graph output.
GraphViz::Makefile
GraphViz
undef
Make
$prefix
Further arguments (specified as key-value pairs):
Point arrows in the direction of dependencies. If not set, then the arrows point in the direction of "build flow".
Generate the graph, beginning at the named Makefile rule. If $rule is not given, all is used instead.
$rule
all
Return a reference to the GraphViz object. This object can be used for the output methods.
Return a reference to the Make object.
For backward compatibility, the following members in the hash-based GraphViz::Makefile object may be used instead of the methods:
There's another module doing the same thing: Makefile::GraphViz.
Slaven Rezic <srezic@cpan.org>
Copyright (c) 2002,2003,2005,2008 Slaven Rezic. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
GraphViz, Make, make(1), tkgvizmakefile.
To install GraphViz::Makefile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GraphViz::Makefile
CPAN shell
perl -MCPAN -e shell install GraphViz::Makefile
For more information on module installation, please visit the detailed CPAN module installation guide.