[win32] the EXTCONST in sdbm.h breaks SDBM on Borland, since
[p5sagit/p5-mst-13.2.git] / pod / Makefile
index 0ec08f9..7eeabd9 100644 (file)
@@ -1,6 +1,13 @@
 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
+
 PERL = ../miniperl
 
 POD = \
@@ -15,6 +22,7 @@ POD = \
        perlvar.pod     \
        perlsub.pod     \
        perlmod.pod     \
+       perlmodlib.pod  \
        perlform.pod    \
        perllocale.pod  \
        perlref.pod     \
@@ -62,6 +70,7 @@ MAN = \
        perlvar.man     \
        perlsub.man     \
        perlmod.man     \
+       perlmodlib.man  \
        perlform.man    \
        perllocale.man  \
        perlref.man     \
@@ -109,6 +118,7 @@ HTML = \
        perlvar.html    \
        perlsub.html    \
        perlmod.html    \
+       perlmodlib.html \
        perlform.html   \
        perllocale.html \
        perlref.html    \
@@ -141,8 +151,8 @@ HTML = \
        perlfaq6.html   \
        perlfaq7.html   \
        perlfaq8.html   \
-       perlfaq9.html   \
-       perltoc.html
+       perlfaq9.html
+# not perltoc.html
 
 TEX = \
        perl.tex        \
@@ -156,6 +166,7 @@ TEX = \
        perlvar.tex     \
        perlsub.tex     \
        perlmod.tex     \
+       perlmodlib.tex  \
        perlform.tex    \
        perllocale.tex  \
        perlref.tex     \
@@ -191,19 +202,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,24 +221,25 @@ 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
-
-.SUFFIXES: .pm .pod .tex
+       $(PERL) -I../lib $(POD2HTML) --infile=$*.pod --outfile=$*.html
 
-.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 pod2html-*cache
        rm -f *.aux *.log
 
 realclean:     clean