X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2FMakefile;h=bfe6c8edadab57ecc7f8e54b7beef4c5b769430a;hb=84287afe68eecc4342d7e27aac5d9df9d2412490;hp=fa16e2ce9ddfa42ad9297fd1194e9d68606e69c7;hpb=f0b7e567eb499713477c3eec4806ba74015e12df;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/Makefile b/pod/Makefile index fa16e2c..bfe6c8e 100644 --- a/pod/Makefile +++ b/pod/Makefile @@ -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,23 +98,28 @@ HTML = \ perlstyle.html \ perlsub.html \ perlsyn.html \ + perltie.html \ + perltoc.html \ perltrap.html \ - perlvar.html + perlvar.html \ + perlxs.html \ + perlxstut.html -TEX = \ +TEX = \ perl.tex \ - perlapi.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 \ @@ -115,48 +132,63 @@ TEX = \ perlstyle.tex \ perlsub.tex \ perlsyn.tex \ + perltie.tex \ + perltoc.tex \ perltrap.tex \ - perlvar.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) pod2html *.pod + $(PERL) -I../lib pod2html $(POD) tex: pod2latex $(TEX) -.SUFFIXES: .pod .man +.SUFFIXES: .pm .pod .man + +.pm.man: pod2man + $(PERL) -I../lib pod2man $*.pm >$*.man .pod.man: pod2man - $(PERL) pod2man $*.pod >$*.man + $(PERL) -I../lib pod2man $*.pod >$*.man + +.SUFFIXES: .mp .pod .html -.SUFFIXES: .pod .html +.pm.html: pod2html + $(PERL) -I../lib pod2html $*.pod .pod.html: pod2html - $(PERL) pod2html $*.pod + $(PERL) -I../lib pod2html $*.pod -.SUFFIXES: .pod .tex +.SUFFIXES: .pm .pod .tex .pod.tex: pod2latex - $(PERL) pod2latex $*.pod + $(PERL) -I../lib pod2latex $*.pod + +.pm.tex: pod2latex + $(PERL) -I../lib pod2latex $*.pod clean: 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