This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl 5.003_01: pod/perlref.pod
[perl5.git] / pod / Makefile
index 47fc2e9..bfe6c8e 100644 (file)
@@ -1,21 +1,23 @@
-all: man
+CONVERTERS = pod2html pod2latex pod2man pod2text
 
+all: $(CONVERTERS) man
 PERL = ../miniperl
 
-POD = \
+POD =  \
        perl.pod        \
-       perlapi.pod     \
        perlbook.pod    \
        perlbot.pod     \
        perlcall.pod    \
        perldata.pod    \
        perldebug.pod   \
        perldiag.pod    \
+       perldsc.pod     \
        perlembed.pod   \
        perlform.pod    \
        perlfunc.pod    \
        perlguts.pod    \
        perlipc.pod     \
+       perllol.pod     \
        perlmod.pod     \
        perlobj.pod     \
        perlop.pod      \
@@ -28,23 +30,28 @@ POD = \
        perlstyle.pod   \
        perlsub.pod     \
        perlsyn.pod     \
+       perltie.pod     \
+       perltoc.pod     \
        perltrap.pod    \
-       perlvar.pod
+       perlvar.pod     \
+       perlxs.pod      \
+       perlxstut.pod
 
-MAN = \
+MAN =  \
        perl.man        \
-       perlapi.man     \
        perlbook.man    \
        perlbot.man     \
        perlcall.man    \
        perldata.man    \
        perldebug.man   \
        perldiag.man    \
+       perldsc.man     \
        perlembed.man   \
        perlform.man    \
        perlfunc.man    \
        perlguts.man    \
        perlipc.man     \
+       perllol.man     \
        perlmod.man     \
        perlobj.man     \
        perlop.man      \
@@ -57,23 +64,28 @@ MAN = \
        perlstyle.man   \
        perlsub.man     \
        perlsyn.man     \
+       perltie.man     \
+       perltoc.man     \
        perltrap.man    \
-       perlvar.man
+       perlvar.man     \
+       perlxs.man      \
+       perlxstut.man
 
-HTML = \
+HTML =         \
        perl.html       \
-       perlapi.html    \
        perlbook.html   \
        perlbot.html    \
        perlcall.html   \
        perldata.html   \
        perldebug.html  \
        perldiag.html   \
+       perldsc.html    \
        perlembed.html  \
        perlform.html   \
        perlfunc.html   \
        perlguts.html   \
        perlipc.html    \
+       perllol.html    \
        perlmod.html    \
        perlobj.html    \
        perlop.html     \
@@ -86,40 +98,97 @@ HTML = \
        perlstyle.html  \
        perlsub.html    \
        perlsyn.html    \
+       perltie.html    \
+       perltoc.html    \
        perltrap.html   \
-       perlvar.html
+       perlvar.html    \
+       perlxs.html     \
+       perlxstut.html
+
+TEX =  \
+       perl.tex        \
+       perlbook.tex    \
+       perlbot.tex     \
+       perlcall.tex    \
+       perldata.tex    \
+       perldebug.tex   \
+       perldiag.tex    \
+       perldsc.tex     \
+       perlembed.tex   \
+       perlform.tex    \
+       perlfunc.tex    \
+       perlguts.tex    \
+       perlipc.tex     \
+       perllol.tex     \
+       perlmod.tex     \
+       perlobj.tex     \
+       perlop.tex      \
+       perlovl.tex     \
+       perlpod.tex     \
+       perlre.tex      \
+       perlref.tex     \
+       perlrun.tex     \
+       perlsec.tex     \
+       perlstyle.tex   \
+       perlsub.tex     \
+       perlsyn.tex     \
+       perltie.tex     \
+       perltoc.tex     \
+       perltrap.tex    \
+       perlvar.tex     \
+       perlxs.tex      \
+       perlxstut.tex
+
+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)
 
-man: $(MAN)
+tex:   pod2latex $(TEX)
 
-# pod2html runs on all the pods at once in order to build up
-# cross-references.
-html:
-       $(PERL) pod2html *.pod
+.SUFFIXES: .pm .pod .man
+
+.pm.man:     pod2man
+       $(PERL) -I../lib pod2man $*.pm >$*.man
+
+.pod.man:     pod2man
+       $(PERL) -I../lib pod2man $*.pod >$*.man
 
-.SUFFIXES: .pod .man
+.SUFFIXES: .mp .pod .html
 
-.pod.man:
-       $(PERL) pod2man $*.pod >$*.man
+.pm.html:    pod2html
+       $(PERL) -I../lib pod2html $*.pod
 
-.SUFFIXES: .pod .html
+.pod.html:    pod2html
+       $(PERL) -I../lib pod2html $*.pod
 
-.pod.html:
-       $(PERL) pod2html $*.pod
+.SUFFIXES: .pm .pod .tex
+
+.pod.tex: pod2latex
+       $(PERL) -I../lib pod2latex $*.pod
+
+.pm.tex: pod2latex
+       $(PERL) -I../lib pod2latex $*.pod
 
 clean:
-       rm -f $(MAN) $(HTML)
+       rm -f $(MAN) $(HTML) $(TEX)
 
 realclean:     clean
-       rm -f pod2man pod2latex pod2html
+       rm -f $(CONVERTERS)
 
 distclean:     realclean
 
 # Dependencies.
-pod2latex:     pod2latex.SH ../config.sh
-       sh pod2latex.SH
+pod2latex:     pod2latex.PL ../lib/Config.pm
+       $(PERL) -I../lib pod2latex.PL
+
+pod2html:      pod2html.PL ../lib/Config.pm
+       $(PERL) -I ../lib pod2html.PL
 
-pod2html:      pod2html.SH ../config.sh
-       sh pod2html.SH
+pod2man:       pod2man.PL ../lib/Config.pm
+       $(PERL) -I ../lib pod2man.PL
 
-pod2man:       pod2man.SH ../config.sh
-       sh pod2man.SH
+pod2text:      pod2text.PL ../lib/Config.pm
+       $(PERL) -I ../lib pod2text.PL