#!/usr/local/bin/perl -w
###########################################
# make2viz - Visualize makefile targets
# Mike Schilli, 2013 (m@perlmeister.com)
###########################################
use strict;

use GraphViz::Makefile;

my $gm = GraphViz::Makefile->new( 
  undef, "Makefile" );

$gm->generate( "all" );

open my $ofh, ">", "makefile.png" or 
    die $!;
print $ofh $gm->GraphViz->as_png;
close $ofh;
