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
+REALPERL = ../perl
POD = \
perl.pod \
perlvar.pod \
perlsub.pod \
perlmod.pod \
+ perlmodlib.pod \
perlform.pod \
perllocale.pod \
perlref.pod \
perlxstut.pod \
perlguts.pod \
perlcall.pod \
+ perlfaq.pod \
+ perlfaq1.pod \
+ perlfaq2.pod \
+ perlfaq3.pod \
+ perlfaq4.pod \
+ perlfaq5.pod \
+ perlfaq6.pod \
+ perlfaq7.pod \
+ perlfaq8.pod \
+ perlfaq9.pod \
perltoc.pod
MAN = \
perlvar.man \
perlsub.man \
perlmod.man \
+ perlmodlib.man \
perlform.man \
perllocale.man \
perlref.man \
perlxstut.man \
perlguts.man \
perlcall.man \
+ perlfaq.man \
+ perlfaq1.man \
+ perlfaq2.man \
+ perlfaq3.man \
+ perlfaq4.man \
+ perlfaq5.man \
+ perlfaq6.man \
+ perlfaq7.man \
+ perlfaq8.man \
+ perlfaq9.man \
perltoc.man
HTML = \
perlvar.html \
perlsub.html \
perlmod.html \
+ perlmodlib.html \
perlform.html \
perllocale.html \
perlref.html \
perlxstut.html \
perlguts.html \
perlcall.html \
- perltoc.html
+ perlfaq.html \
+ perlfaq1.html \
+ perlfaq2.html \
+ perlfaq3.html \
+ perlfaq4.html \
+ perlfaq5.html \
+ perlfaq6.html \
+ perlfaq7.html \
+ perlfaq8.html \
+ perlfaq9.html
+# not perltoc.html
TEX = \
perl.tex \
perlvar.tex \
perlsub.tex \
perlmod.tex \
+ perlmodlib.tex \
perlform.tex \
perllocale.tex \
perlref.tex \
perlxstut.tex \
perlguts.tex \
perlcall.tex \
+ perlfaq.tex \
+ perlfaq1.tex \
+ perlfaq2.tex \
+ perlfaq3.tex \
+ perlfaq4.tex \
+ perlfaq5.tex \
+ perlfaq6.tex \
+ perlfaq7.tex \
+ perlfaq8.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
.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 *.aux *.log
+ rm -f pod2html-*cache
+ rm -f *.aux *.log *.exe
realclean: clean
rm -f $(CONVERTERS)
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;
+