Update of /cvsroot/http-webtest/HTTP-WebTest-Plugin-Apache
In directory sc8-pr-cvs1:/tmp/cvs-serv26900
Modified Files:
Makefile.PL
Log Message:
Add targets to build README automatically
Index: Makefile.PL
===================================================================
RCS file: /cvsroot/http-webtest/HTTP-WebTest-Plugin-Apache/Makefile.PL,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** Makefile.PL 15 Nov 2002 21:46:57 -0000 1.1.1.1
--- Makefile.PL 14 Dec 2002 20:10:37 -0000 1.2
***************
*** 44,47 ****
--- 44,58 ----
}
+ sub dist_core {
+ my $self = shift;
+
+ my $make = $self->SUPER::dist_core();
+
+ # add our hook for dist target
+ $make =~ s/^dist : /dist : distprepare /m;
+
+ return $make;
+ }
+
sub postamble {
my $make = '';
***************
*** 60,63 ****
--- 71,93 ----
test_config:
\t\$(PERL) $test_config_pl .config
+ MAKE
+
+ # add README generation target
+ my $make_readme_pl = File::Spec->catfile(qw(scripts make_readme.PL));
+ my $apache_pm = File::Spec->catfile(qw(lib HTTP WebTest Plugin Apache.pm));
+ $make .= <<MAKE;
+
+ README: $apache_pm $make_readme_pl
+ \t\$(PERL) $make_readme_pl $apache_pm README
+ MAKE
+
+ # add distprepare target (dist target depends on it)
+ $make .= <<MAKE;
+
+ distprepare :: README
+ \t\@\$(NOOP)
+
+ distprepare :: $apache_pm
+ \t\@\$(NOOP)
MAKE
|