X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2FMakefile.SH;h=1d53de7f9dcbb6a805dba4ca9068f28ceca1b704;hb=c1effa61278e47c916466883d74905b04fedc388;hp=ae6262c816876dff26a5d05894ae6a0a26a061b4;hpb=e788edffda7d09f6c23d57801a774fbdc00e5bac;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/Makefile.SH b/pod/Makefile.SH index ae6262c..1d53de7 100644 --- a/pod/Makefile.SH +++ b/pod/Makefile.SH @@ -1,4 +1,4 @@ -case $CONFIG in +case $PERL_CONFIG_SH in '') if test -f config.sh; then TOP=.; elif test -f ../config.sh; then TOP=..; @@ -54,7 +54,7 @@ LDLIBPTH = $ldlibpth ## In the following dollars and backticks do not need the extra backslash. $spitshell >>Makefile <<'!NO!SUBS!' -CONVERTERS = pod2html pod2latex pod2man pod2text checkpods \ +CONVERTERS = pod2html pod2latex pod2man pod2text \ pod2usage podchecker podselect HTMLROOT = / # Change this to fix cross-references in HTML @@ -64,35 +64,31 @@ POD2HTML = pod2html \ --libpods=perlfunc:perlguts:perlvar:perlrun:perlop PERL = ../miniperl +PERLILIB = $(PERL) -I../lib REALPERL = ../perl all: $(CONVERTERS) man converters: $(CONVERTERS) -regen_pods: perlmodlib.pod toc - -buildtoc: buildtoc.PL perl.pod ../MANIFEST - $(PERL) -I ../lib buildtoc.PL - man: pod2man $(MAN) html: pod2html $(HTML) tex: pod2latex $(TEX) -toc: buildtoc - $(PERL) -I../lib buildtoc +toc perltoc.pod: buildtoc + $(PERLILIB) buildtoc --build-toc .SUFFIXES: .pm .pod .SUFFIXES: .man .pm.man: pod2man - $(PERL) -I../lib pod2man $*.pm >$*.man + $(REALPERL) -I../lib pod2man $*.pm >$*.man .pod.man: pod2man - $(PERL) -I../lib pod2man $*.pod >$*.man + $(REALPERL) -I../lib pod2man $*.pod >$*.man .SUFFIXES: .html @@ -125,9 +121,9 @@ distclean: realclean veryclean: distclean -rm -f *~ *.orig -check: checkpods +check: podchecker @echo "checking..."; \ - $(PERL) -I../lib checkpods $(POD) + $(PERL) -I../lib podchecker $(POD) # Dependencies. pod2latex: pod2latex.PL ../lib/Config.pm @@ -142,9 +138,6 @@ pod2man: pod2man.PL ../lib/Config.pm pod2text: pod2text.PL ../lib/Config.pm $(LDLIBPTH) $(PERL) -I ../lib pod2text.PL -checkpods: checkpods.PL ../lib/Config.pm - $(LDLIBPTH) $(PERL) -I ../lib checkpods.PL - pod2usage: pod2usage.PL ../lib/Config.pm $(PERL) -I ../lib pod2usage.PL @@ -154,12 +147,4 @@ podchecker: podchecker.PL ../lib/Config.pm podselect: podselect.PL ../lib/Config.pm $(PERL) -I ../lib podselect.PL -perlmodlib.pod: $(PERL) perlmodlib.PL ../mv-if-diff - rm -f perlmodlib.tmp - $(PERL) -I ../lib perlmodlib.PL - sh ../mv-if-diff perlmodlib.tmp perlmodlib.pod - -compile: all - $(REALPERL) -I../lib ../utils/perlcc -regex 's/$$/.exe/' pod2latex pod2man pod2text checkpods -prog -verbose dcf -log ../compilelog; - !NO!SUBS!