Factor out the Makefile.PL into easily digestable snippets
[dbsrgits/DBIx-Class.git] / maint / Makefile.PL.inc / 51_autogen_README.pl
1 # Makefile syntax allows adding extra dep-specs for already-existing targets,
2 # and simply appends them on *LAST*-come *FIRST*-serve basis.
3 # This allows us to inject extra depenencies for standard EUMM targets
4
5 postamble <<"EOP";
6
7 .PHONY: dbic_clonedir_cleanup_readme dbic_clonedir_gen_readme
8
9 distdir : dbic_clonedir_cleanup_readme
10
11 create_distdir : dbic_clonedir_gen_readme
12
13 dbic_clonedir_gen_readme :
14 \tpod2text lib/DBIx/Class.pm > README
15
16 dbic_clonedir_cleanup_readme :
17 \t\$(RM_F) README
18
19 EOP
20
21 # keep the Makefile.PL eval happy
22 1;