#!/usr/bin/perl # $Id: Makefile-5004.pm 2147 2006-11-02 20:06:03Z bsmith $ use strict; use ExtUtils::MakeMaker; use lib qw(./mylib); use PoeBuildInfo qw( TEST_FILES CLEAN_FILES CORE_REQUIREMENTS ); ### Touch files that will be generated at "make dist" time. ### ExtUtils::MakeMaker and Module::Build will complain about them if ### they aren't present now. open(TOUCH, ">>CHANGES") and close TOUCH; open(TOUCH, ">>META.yml") and close TOUCH; ### Generate dynamic test files. system($^X, "mylib/gen-tests.perl") and die "couldn't generate tests: $!"; ### Generate Makefile.PL. sub MY::postamble { return < 'POE', VERSION_FROM => 'lib/POE.pm', dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', PREOP => ( 'echo Use a modern version of Perl to build distributions.; ' . 'false' ), }, clean => { FILES => CLEAN_FILES, }, test => { TESTS => TEST_FILES, }, PL_FILES => { }, PREREQ_PM => { CORE_REQUIREMENTS }, PM_FILTER => 'mylib/preprocessor.perl', ); 1;