The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
    'NAME'	=> 'LEGO::RCX',
    'VERSION_FROM' => 'RCX.pm', # finds $VERSION
    'dist' => { 'DIST_DEFAULT' => 'rcx_docs tardist' },
);

package MY;

sub MY::postamble {
'
rcx_docs : RCX.pm
	pod2text RCX.pm > DOCS
'
}

sub MY::clean {
    my $this = shift;
    
    $this->SUPER::clean( @_ ) . 
    "\n\t-rm DOCS"
}