X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2FMakefile;h=bfe6c8edadab57ecc7f8e54b7beef4c5b769430a;hb=84287afe68eecc4342d7e27aac5d9df9d2412490;hp=077ecd19bbaf6f64b52121ea610135839c4f6bd1;hpb=ecfc54246c2a6f42dc95b17a964a6048192067d2;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/Makefile b/pod/Makefile index 077ecd1..bfe6c8e 100644 --- a/pod/Makefile +++ b/pod/Makefile @@ -1,19 +1,23 @@ -all: man +CONVERTERS = pod2html pod2latex pod2man pod2text -POD = \ +all: $(CONVERTERS) man +PERL = ../miniperl + +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 \ @@ -26,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 \ @@ -55,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 \ @@ -84,24 +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) + +tex: pod2latex $(TEX) + +.SUFFIXES: .pm .pod .man + +.pm.man: pod2man + $(PERL) -I../lib pod2man $*.pm >$*.man -man: $(MAN) +.pod.man: pod2man + $(PERL) -I../lib pod2man $*.pod >$*.man -html: $(HTML) +.SUFFIXES: .mp .pod .html -.SUFFIXES: .pod .man +.pm.html: pod2html + $(PERL) -I../lib pod2html $*.pod -.pod.man: - ../miniperl pod2man $*.pod >$*.man +.pod.html: pod2html + $(PERL) -I../lib pod2html $*.pod -.SUFFIXES: .pod .html +.SUFFIXES: .pm .pod .tex -.pod.html: - ../miniperl pod2html $*.pod >$*.html +.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 $(CONVERTERS) + +distclean: realclean + +# Dependencies. +pod2latex: pod2latex.PL ../lib/Config.pm + $(PERL) -I../lib pod2latex.PL + +pod2html: pod2html.PL ../lib/Config.pm + $(PERL) -I ../lib pod2html.PL + +pod2man: pod2man.PL ../lib/Config.pm + $(PERL) -I ../lib pod2man.PL + +pod2text: pod2text.PL ../lib/Config.pm + $(PERL) -I ../lib pod2text.PL