Make `perl Makefile.PL` runs more user friendly - better diagnostics
[dbsrgits/DBIx-Class.git] / maint / Makefile.PL.inc / 52_autogen_README.pl
CommitLineData
4a51243f 1# When a long-standing branch is updated a README may still linger around
388a1ec7 2unlink 'README' if -f 'README';
3
fc4b0448 4# Makefile syntax allows adding extra dep-specs for already-existing targets,
5# and simply appends them on *LAST*-come *FIRST*-serve basis.
6# This allows us to inject extra depenencies for standard EUMM targets
7
97867713 8require File::Spec;
9my $dir = File::Spec->catdir(qw(maint .Generated_Pod));
10my $fn = File::Spec->catfile($dir, 'README');
11
fc4b0448 12postamble <<"EOP";
13
a0c96f24 14clonedir_generate_files : dbic_clonedir_gen_readme
fc4b0448 15
fc4b0448 16dbic_clonedir_gen_readme :
97867713 17\t@{[ $mm_proto->oneliner('mkpath', ['-MExtUtils::Command']) ]} $dir
18\tpod2text lib/DBIx/Class.pm > $fn
a0c96f24 19
fc4b0448 20EOP
21
22# keep the Makefile.PL eval happy
231;