Es posible entonces establecer la ejecución del guión anterior
extendiendo Makefile.PL con una función
MY::postamble . La cadena retornada por esta función es añadida
al Makefile construido:
lhp@nereida:$ cat -n Makefile.PL
1 use ExtUtils::MakeMaker;
2 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
3 # the contents of the Makefile that is written.
4 WriteMakefile(
5 NAME => 'Algorithm::Knap01DP',
6 VERSION_FROM => 'lib/Algorithm/Knap01DP.pm', # finds $VERSION
7 PREREQ_PM => {}, # e.g., Module::Name => 1.1
8 ($] >= 5.005 ? ## Add these new keywords supported since 5.005
9 (ABSTRACT_FROM => 'lib/Algorithm/Knap01DP.pm', # retrieve abstract from module
10 AUTHOR => 'Lenguajes y Herramientas de Programacion <lhp@>') : ()),
11 );
12
13 sub MY::postamble {
14 my @machines = qw( orion beowulf);
15
16 return <<"EOT";
17 remotetest:
18 remotetest.pl \${DISTVNAME}.tar.gz @machines
19 EOT
20 }
Casiano Rodríguez León
