added patch for -i'foo*bar', made code somewhat simpler, tweaked doc
[p5sagit/p5-mst-13.2.git] / pod / Makefile
index 0ec08f9..785f977 100644 (file)
@@ -1,7 +1,17 @@
 CONVERTERS = pod2html pod2latex pod2man pod2text checkpods
 
+HTMLROOT = /   # Change this to fix cross-references in HTML
+POD2HTML = pod2html \
+           --htmlroot=$(HTMLROOT) \
+           --podroot=.. --podpath=pod:lib:ext:vms \
+           --libpods=perlfunc:perlguts:perlvar:perlrun:perlop
+
 all: $(CONVERTERS) man
+
+converters: $(CONVERTERS)
+
 PERL = ../miniperl
+REALPERL = ../perl
 
 POD = \
        perl.pod        \
@@ -15,6 +25,7 @@ POD = \
        perlvar.pod     \
        perlsub.pod     \
        perlmod.pod     \
+       perlmodlib.pod  \
        perlform.pod    \
        perllocale.pod  \
        perlref.pod     \
@@ -62,6 +73,7 @@ MAN = \
        perlvar.man     \
        perlsub.man     \
        perlmod.man     \
+       perlmodlib.man  \
        perlform.man    \
        perllocale.man  \
        perlref.man     \
@@ -109,6 +121,7 @@ HTML = \
        perlvar.html    \
        perlsub.html    \
        perlmod.html    \
+       perlmodlib.html \
        perlform.html   \
        perllocale.html \
        perlref.html    \
@@ -141,8 +154,8 @@ HTML = \
        perlfaq6.html   \
        perlfaq7.html   \
        perlfaq8.html   \
-       perlfaq9.html   \
-       perltoc.html
+       perlfaq9.html
+# not perltoc.html
 
 TEX = \
        perl.tex        \
@@ -156,6 +169,7 @@ TEX = \
        perlvar.tex     \
        perlsub.tex     \
        perlmod.tex     \
+       perlmodlib.tex  \
        perlform.tex    \
        perllocale.tex  \
        perlref.tex     \
@@ -191,19 +205,18 @@ TEX = \
        perlfaq9.tex    \
        perltoc.tex
 
-man:  pod2man $(MAN)
+man:   pod2man $(MAN)
 
-# pod2html normally runs on all the pods at once in order to build up
-# cross-references.
-html: pod2html
-       $(PERL) -I../lib pod2html $(POD)
+html:  pod2html $(HTML)
 
 tex:   pod2latex $(TEX)
 
 toc:
        $(PERL) -I../lib buildtoc >perltoc.pod
 
-.SUFFIXES: .pm .pod .man
+.SUFFIXES: .pm .pod
+
+.SUFFIXES: .man
 
 .pm.man:     pod2man
        $(PERL) -I../lib pod2man $*.pm >$*.man
@@ -211,25 +224,28 @@ toc:
 .pod.man:     pod2man
        $(PERL) -I../lib pod2man $*.pod >$*.man
 
-.SUFFIXES: .mp .pod .html
+.SUFFIXES: .html
 
 .pm.html:    pod2html
-       $(PERL) -I../lib pod2html $*.pod
+       $(PERL) -I../lib $(POD2HTML) --infile=$*.pm --outfile=$*.html
 
 .pod.html:    pod2html
-       $(PERL) -I../lib pod2html $*.pod
+       $(PERL) -I../lib $(POD2HTML) --infile=$*.pod --outfile=$*.html
 
-.SUFFIXES: .pm .pod .tex
-
-.pod.tex: pod2latex
-       $(PERL) -I../lib pod2latex $*.pod
+.SUFFIXES: .tex
 
 .pm.tex: pod2latex
+       $(PERL) -I../lib pod2latex $*.pm
+
+.pod.tex: pod2latex
        $(PERL) -I../lib pod2latex $*.pod
 
 clean:
-       rm -f $(MAN) $(HTML) $(TEX)
-       rm -f *.aux *.log
+       rm -f $(MAN)
+       rm -f $(HTML)
+       rm -f $(TEX)
+       rm -f pod2html-*cache
+       rm -f *.aux *.log *.exe
 
 realclean:     clean
        rm -f $(CONVERTERS)
@@ -256,4 +272,7 @@ pod2text:   pod2text.PL ../lib/Config.pm
 checkpods:     checkpods.PL ../lib/Config.pm
        $(PERL) -I ../lib checkpods.PL
 
+compile: all
+       $(REALPERL) -I../lib ../utils/perlcc -regex 's/$$/.exe/' pod2latex pod2man pod2text checkpods -prog -verbose dcf -log ../compilelog;
 
+