in reply to Adding additional targets to Module::Install

You can use postamble to add things to the end of the generated Makefile

postamble <<END_OF_MAKEFILE; pod: \t\$(PERL) etc/build_pod.pl END_OF_MAKEFILE

So your Makefile.PL will look like:

use inc::Module::Install; name 'DBIx-Cookbook'; all_from 'lib/DBIx/Cookbook.pm'; author q{Terrence Brannon <metaperl@gmail.com>}; license 'perl'; author_tests('xt'); build_requires 'Test::More'; requires 'DBI'; requires 'MooseX::App::Cmd'; auto_install; postamble <<END_OF_MAKEFILE; pod: \t\$(PERL) etc/build_pod.pl END_OF_MAKEFILE WriteAll;

Replies are listed 'Best First'.
Re^2: Adding additional targets to Module::Install
by metaperl (Curate) on Apr 14, 2010 at 17:45 UTC