cvsuser 02/04/05 13:56:05
Modified: P5EEx/Blue Makefile.PL
Log:
included some of Steve Lihn's ideas on making it Windows friendly
Revision Changes Path
1.14 +35 -7 p5ee/P5EEx/Blue/Makefile.PL
Index: Makefile.PL
===================================================================
RCS file: /cvs/public/p5ee/P5EEx/Blue/Makefile.PL,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -w -r1.13 -r1.14
--- Makefile.PL 22 Mar 2002 23:12:16 -0000 1.13
+++ Makefile.PL 5 Apr 2002 21:56:04 -0000 1.14
@@ -1,6 +1,6 @@
######################################################################
-## File: $Id: Makefile.PL,v 1.13 2002/03/22 23:12:16 spadkins Exp $
+## File: $Id: Makefile.PL,v 1.14 2002/04/05 21:56:04 spadkins Exp $
######################################################################
use ExtUtils::MakeMaker;
@@ -111,6 +111,30 @@
WriteMakefile(%opts);
+# Steve Lihn found that the long argument lists used to create
+# documentation caused the make on WinNT to fail.
+# Michael Schwern recommended this as a way to stub out the
+# generation of HTML files from PODs in versions of MakeMaker which
+# still try to generate them.
+# http://archive.develooper.com/p5ee%40perl.org/msg00901.html
+# The HTML generation support is evidently removed from current
+# and future versions of MakeMaker with no evident intention
+# of restoring them.
+# I have the two sections commented out because I build on Unix
+# and it works, and I want the doc generation to work.
+# I envision that I will make a new "make" target called "make doc"
+# that reinstates the steps that we remove.
+
+#sub MY::htmlifypods {
+# my($self) = shift;
+# return "\nhtmlifypods :\n\t$self->{NOECHO}\$(NOOP)\n";
+#}
+
+#sub MY::manifypods {
+# my($self) = shift;
+# return "\nmanifypods :\n\t$self->{NOECHO}\$(NOOP)\n";
+#}
+
sub MY::postamble {
my ($pmlibdirs);
@@ -122,18 +146,22 @@
return <<EOF;
all ::
- \@sbin/perldocs \\
+ \@\$(PERL) sbin/perldocs \\
-dir=htdocs \\
-docroot=/pub/p5ee/software/htdocs \\
-distname=\$(DISTNAME) \\
-version=\$(VERSION) \\
-pmlibdirs=$pmlibdirs
- \@#rm -f \$(INSTALLHTMLSCRIPTDIR)/cgi.conf
- \@#mkdir -p \$(INSTALLHTMLSCRIPTDIR)
- \@#echo "perlinc = \$(INSTALLPRIVLIB)" > \$(INSTALLHTMLSCRIPTDIR)/cgi.conf
- \@#echo "templatedir = \$(INSTALLSCRIPT)" >> \$(INSTALLHTMLSCRIPTDIR)/cgi.conf
- \@#[ -f \$(PREFIX)/.prefixvars ] && cat \$(PREFIX)/.prefixvars >>
\$(INSTALLHTMLSCRIPTDIR)/cgi.conf
EOF
+
+# Note: I need to work through the following lines and reintroduce them to the "all"
+# part of the "postamble" when appropriate.
+# \@\$(RM_F) \$(INSTALLHTMLSCRIPTDIR)/cgi.conf
+# \@\$(MKPATH) \$(INSTALLHTMLSCRIPTDIR)
+# \@\$(PERL) -e "print qq{perlinc = },shift,qq{\\n}" \$(INSTALLPRIVLIB) >
\$(INSTALLHTMLSCRIPTDIR)/cgi.conf
+# \@\$(PERL) -e "print qq{templatedir = },shift,qq{\\n}" \$(INSTALLSCRIPT) >>
\$(INSTALLHTMLSCRIPTDIR)/cgi.conf
+# \@\$(TEST_F) \$(PREFIX)/.prefixvars && cat \$(PREFIX)/.prefixvars >>
\$(INSTALLHTMLSCRIPTDIR)/cgi.conf || echo ".prefixvars not found"
+
}