Author: rafl
Date: Sat Nov 5 09:46:03 2005
New Revision: 9799
Modified:
/ (props changed)
trunk/config/gen/makefiles.pl
trunk/config/gen/makefiles/docs.in
Log:
[EMAIL PROTECTED]: rafl | 2005-11-05 18:46:21 +0100
* Reverted some changes wrt docs/Makefile generation.
Modified: trunk/config/gen/makefiles.pl
==============================================================================
--- trunk/config/gen/makefiles.pl (original)
+++ trunk/config/gen/makefiles.pl Sat Nov 5 09:46:03 2005
@@ -141,6 +141,22 @@ sub makefiles {
conditioned_lines => 1);
Configure::Data->set(pod => undef);
+
+ open MAKEFILE, ">> docs/Makefile" or die "open >> docs/Makefile: $!";
+
+ my $slash = Configure::Data->get('slash');
+ my $new_perldoc = Configure::Data->get('new_perldoc');
+
+ foreach my $ops (@ops) {
+ my $pod = $ops;
+ $pod =~ s/\.ops$/.pod/;
+ print MAKEFILE "ops$slash$pod: ..${slash}ops${slash}$ops\n";
+ if ($new_perldoc == 1) {
+ print MAKEFILE "\tperldoc -ud ops${slash}$pod
..${slash}ops${slash}$ops\n\n";
+ } else {
+ print MAKEFILE "\tperldoc -u ..${slash}ops${slash}$ops >
ops${slash}$pod\n\n";
+ }
+ }
} else {
print "\nNo Perldoc, not generating a docs makefile.\n";
Modified: trunk/config/gen/makefiles/docs.in
==============================================================================
--- trunk/config/gen/makefiles/docs.in (original)
+++ trunk/config/gen/makefiles/docs.in Sat Nov 5 09:46:03 2005
@@ -49,6 +49,3 @@ html:
html-clean:
$(PERL) -I../lib -MParrot::Distribution -e
"Parrot::Distribution->new->delete_html_docs"
-ops${slash}%.pod: ..${slash}ops${slash}%.ops
-#CONDITIONED_LINE(new_perldoc): perldoc -ud $@ $<
-#INVERSE_CONDITIONED_LINE(new_perldoc): perldoc -u $< > $@