X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=maint%2FMakefile.PL.inc%2F52_autogen_README.pl;h=0f4a38c7e04284fe64f260d686bfdc9e7fe1ddb7;hb=7606fd627a07514ca932e47d643ca65404842adf;hp=89142113bfadfdd4ff92abd67a9f3d8b53dc8c99;hpb=a0c96f2461b2a46b242b8432deb0ad88880f73cd;p=dbsrgits%2FDBIx-Class.git diff --git a/maint/Makefile.PL.inc/52_autogen_README.pl b/maint/Makefile.PL.inc/52_autogen_README.pl index 8914211..0f4a38c 100644 --- a/maint/Makefile.PL.inc/52_autogen_README.pl +++ b/maint/Makefile.PL.inc/52_autogen_README.pl @@ -1,23 +1,21 @@ -# When a long-standing branch is updated a README may still inger around +# When a long-standing branch is updated a README may still linger around unlink 'README' if -f 'README'; # Makefile syntax allows adding extra dep-specs for already-existing targets, # and simply appends them on *LAST*-come *FIRST*-serve basis. # This allows us to inject extra depenencies for standard EUMM targets +require File::Spec; +my $dir = File::Spec->catdir(qw(maint .Generated_Pod)); +my $fn = File::Spec->catfile($dir, 'README'); + postamble <<"EOP"; clonedir_generate_files : dbic_clonedir_gen_readme -clonedir_cleanup_generated_files : dbic_clonedir_cleanup_readme - dbic_clonedir_gen_readme : -\tpod2text lib/DBIx/Class.pm > README - -dbic_clonedir_cleanup_readme : -\t\$(RM_F) README - -realclean :: dbic_clonedir_cleanup_readme +\t@{[ $mm_proto->oneliner('mkpath', ['-MExtUtils::Command']) ]} $dir +\tpod2text lib/DBIx/Class.pm > $fn EOP