Permalink
Browse files

better way to autogenerate README is via Make rules. INF-2370

  • Loading branch information...
1 parent a3e956d commit 46aa24c2e68c4078ada0ae17d5b5b1ba728cecd3 Vivek Khera committed May 18, 2011
Showing with 9 additions and 3 deletions.
  1. +9 −3 Makefile.PL
View
@@ -11,14 +11,20 @@ my %opts = (
'HTML::Tree' => 3.23,
'Badger' => 0.03,
},
- 'dist' => {
- PREOP => 'pod2text lib/HTML/Query.pm > README; ln -f README $(DISTVNAME)/README',
- },
'test' => {
'TESTS' => join(' ', map { glob } qw( t/*.t )),
},
);
+sub MY::postamble {
+ return <<'MAKE_FRAG';
+all :: README
+
+README: lib/HTML/Query.pm
+ pod2text $> > README
+MAKE_FRAG
+}
+
# Handle dev versions in our check
my $mmv = $ExtUtils::MakeMaker::VERSION;
$mmv =~ s/\_.+//;

0 comments on commit 46aa24c

Please sign in to comment.