Merge all pod generation into one inc snippet, cleanup the poddir beforehand
[dbsrgits/DBIx-Class.git] / maint / Makefile.PL.inc / 52_autogen_README.pl
1 # When a long-standing branch is updated a README may still inger around
2 unlink 'README' if -f 'README';
3
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
8 postamble <<"EOP";
9
10 clonedir_generate_files : dbic_clonedir_gen_readme
11
12 clonedir_cleanup_generated_files : dbic_clonedir_cleanup_readme
13
14 dbic_clonedir_gen_readme :
15 \tpod2text lib/DBIx/Class.pm > README
16
17 dbic_clonedir_cleanup_readme :
18 \t\$(RM_F) README
19
20 realclean :: dbic_clonedir_cleanup_readme
21
22 EOP
23
24 # keep the Makefile.PL eval happy
25 1;