fi
POD=`echo *.pod`
MAN=`echo $POD|sed 's/\.pod/\.man/g'`
-HTML=`echo $POD|sed 's/perltoc.pod//'|sed 's/\.pod/\.man/g'`
+HTML=`echo $POD|sed 's/perltoc.pod//'|sed 's/\.pod/\.html/g'`
TEX=`echo $POD|sed 's/\.pod/\.tex/g'`
echo "Extracting pod/Makefile (with variable substitutions)"
TEX = $TEX
+# The following is used to include the current directory in
+# the dynamic loader path you are building a shared libperl.
+LDLIBPTH = $ldlibpth
+
!GROK!THIS!
## In the following dollars and backticks do not need the extra backslash.
--libpods=perlfunc:perlguts:perlvar:perlrun:perlop
PERL = ../miniperl
+PERLILIB = $(PERL) -I../lib
REALPERL = ../perl
all: $(CONVERTERS) man
regen_pods: perlmodlib.pod toc
-buildtoc: buildtoc.PL
- $(PERL) -I ../lib buildtoc.PL
+buildtoc: buildtoc.PL perl.pod ../MANIFEST
+ $(PERLILIB) buildtoc.PL
+
+perltoc.pod: buildtoc
man: pod2man $(MAN)
tex: pod2latex $(TEX)
-toc:
- $(PERL) -I../lib buildtoc
+toc perltoc.pod: buildtoc
+ $(PERLILIB) buildtoc
.SUFFIXES: .pm .pod
distclean: realclean
+veryclean: distclean
+ -rm -f *~ *.orig
+
check: checkpods
@echo "checking..."; \
$(PERL) -I../lib checkpods $(POD)
# Dependencies.
pod2latex: pod2latex.PL ../lib/Config.pm
- $(PERL) -I../lib pod2latex.PL
+ $(LDLIBPTH) $(PERL) -I../lib pod2latex.PL
pod2html: pod2html.PL ../lib/Config.pm
- $(PERL) -I ../lib pod2html.PL
+ $(LDLIBPTH) $(PERL) -I ../lib pod2html.PL
pod2man: pod2man.PL ../lib/Config.pm
- $(PERL) -I ../lib pod2man.PL
+ $(LDLIBPTH) $(PERL) -I ../lib pod2man.PL
pod2text: pod2text.PL ../lib/Config.pm
- $(PERL) -I ../lib pod2text.PL
+ $(LDLIBPTH) $(PERL) -I ../lib pod2text.PL
checkpods: checkpods.PL ../lib/Config.pm
- $(PERL) -I ../lib checkpods.PL
+ $(LDLIBPTH) $(PERL) -I ../lib checkpods.PL
pod2usage: pod2usage.PL ../lib/Config.pm
$(PERL) -I ../lib pod2usage.PL
podselect: podselect.PL ../lib/Config.pm
$(PERL) -I ../lib podselect.PL
-perlmodlib.pod: $(PERL) perlmodlib.PL ../mv-if-diff
+perlmodlib.pod: $(PERL) perlmodlib.PL ../mv-if-diff ../MANIFEST
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;
+ $(REALPERL) -I../lib ../utils/perlcc -o pod2latex.exe pod2latex -log ../compilelog
+ $(REALPERL) -I../lib ../utils/perlcc -o pod2man.exe pod2man -log ../compilelog
+ $(REALPERL) -I../lib ../utils/perlcc -o pod2text.exe pod2text -log ../compilelog
+ $(REALPERL) -I../lib ../utils/perlcc -o checkpods.exe checkpods -log ../compilelog
!NO!SUBS!