The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use ExtUtils::MakeMaker;
require 5.006;

WriteMakefile
  (
   NAME	           => "B::Debug",
   VERSION_FROM    => "Debug.pm",
   PREREQ_PM => {'B'          => 0,
                 'Test::More' => 0,
              ($] >= 5.0217003 ?
                ('deprecate'  => 0.03) : ()),
                },
   ($] >= 5.005 ?
    ('AUTHOR' => 'Malcolm Beattie <retired>, Reini Urban <rurban@cpan.org>',
     'ABSTRACT' => 'print debug info about ops') : ()),
   ($ExtUtils::MakeMaker::VERSION gt '6.30' ?
    ('LICENSE'                => 'perl') : ()),
   (($ExtUtils::MakeMaker::VERSION gt '6.31' and $ExtUtils::MakeMaker::VERSION lt '6.46') ?
    ('EXTRA_META'  => "recommends:\n" .
     "    B::Flags:                      0.04\n"
    ) : ()),
   ($ExtUtils::MakeMaker::VERSION gt '6.46' ?
    ('META_MERGE'  => {"recommends" => {
                       "B::Flags" => "0.04"}}
    ) : ()),
   # Part of core perl since 5.005005, but core wants it to be in site since 5.12
   'INSTALLDIRS' => ( $] > 5.005005 && $] < 5.011 ? "perl" : "site" ),
   # install into ARCHLIB
   ($] < 5.011) ? (PM => {
       'Debug.pm' => '$(INST_ARCHLIB)/B/Debug.pm',
   }) : (),
   SIGN => 1,
  );

package MY;
sub depend {
  "
README : \$(VERSION_FROM)
	pod2text \$(VERSION_FROM) > README

release : dist
	echo git commit -a -m\"release \$(VERSION)\"
	git tag \$(VERSION)
	cpan-upload \$(DISTVNAME).tar\$(SUFFIX)
	git push
	git push --tags
"
}