X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=maint%2FMakefile.PL.inc%2F50_redefine_makefile_flow.pl;h=251c18413e1b5c2d6c1b09a6e8125883538c2845;hb=d63c9e6418251a745cc6b6e1ef5ddf4b12ceb190;hp=3813e807d83d6eb7623250aab100e8db7e3e9adb;hpb=a0c96f2461b2a46b242b8432deb0ad88880f73cd;p=dbsrgits%2FDBIx-Class.git diff --git a/maint/Makefile.PL.inc/50_redefine_makefile_flow.pl b/maint/Makefile.PL.inc/50_redefine_makefile_flow.pl index 3813e80..251c184 100644 --- a/maint/Makefile.PL.inc/50_redefine_makefile_flow.pl +++ b/maint/Makefile.PL.inc/50_redefine_makefile_flow.pl @@ -4,10 +4,13 @@ package MY; sub distdir { (my $snippet = shift->SUPER::distdir(@_)) =~ s/^create_distdir :/create_distdir_copy_manifested :/; + no warnings 'qw'; return <<"EOM"; $snippet -create_distdir : clonedir_generate_files clonedir_post_generate_files fresh_manifest create_distdir_copy_manifested clonedir_cleanup_generated_files +.NOTPARALLEL : + +create_distdir : check_create_distdir_prereqs clonedir_generate_files clonedir_post_generate_files fresh_manifest create_distdir_copy_manifested clonedir_cleanup_generated_files \t\$(NOECHO) \$(NOOP) clonedir_generate_files : @@ -19,6 +22,33 @@ clonedir_post_generate_files : clonedir_cleanup_generated_files : \t\$(NOECHO) \$(NOOP) +check_create_distdir_prereqs : +\t\$(NOECHO) @{[ + $mm_proto->oneliner("1", [qw( -Ilib -MDBIx::Class::Optional::Dependencies=-die_without,dist_dir )]) +]} + +EOM + } +} + +# M::I inserts its own default postamble, so we can't easily override upload +# but we can still hook postamble in EU::MM +{ + package MY; + + sub postamble { + my $snippet = shift->SUPER::postamble(@_); + no warnings 'qw'; + return <<"EOM"; +$snippet + +upload :: check_create_distdir_prereqs check_upload_dist_prereqs + +check_upload_dist_prereqs : +\t\$(NOECHO) @{[ + $mm_proto->oneliner("1", [qw( -Ilib -MDBIx::Class::Optional::Dependencies=-die_without,dist_upload )]) +]} + EOM } }