1 case $PERL_CONFIG_SH in
3 if test -f config.sh; then TOP=.;
4 elif test -f ../config.sh; then TOP=..;
5 elif test -f ../../config.sh; then TOP=../..;
6 elif test -f ../../../config.sh; then TOP=../../..;
7 elif test -f ../../../../config.sh; then TOP=../../../..;
9 echo "Can't find config.sh."; exit 1
14 : This forces SH files to create target in same directory as SH file.
15 : This is so that make depend always knows where to find SH derivatives.
17 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
24 MAN=`echo $POD|sed 's/\.pod/\.man/g'`
25 HTML=`echo $POD|sed 's/perltoc.pod//'|sed 's/\.pod/\.html/g'`
26 TEX=`echo $POD|sed 's/\.pod/\.tex/g'`
28 echo "Extracting pod/Makefile (with variable substitutions)"
29 : This section of the file will have variable substitutions done on it.
30 : Move anything that needs config subs from !NO!SUBS! section to !GROK!THIS!.
31 : Protect any dollar signs and backticks that you do not want interpreted
32 : by putting a backslash in front. You may delete these comments.
34 $spitshell >Makefile <<!GROK!THIS!
36 # This file is derived from pod/Makefile.SH. Any changes made here will
37 # be lost the next time you run Configure.
48 # The following is used to include the current directory in
49 # the dynamic loader path you are building a shared libperl.
54 ## In the following dollars and backticks do not need the extra backslash.
55 $spitshell >>Makefile <<'!NO!SUBS!'
57 HTMLROOT = / # Change this to fix cross-references in HTML
58 POD2HTML_ARGS = --htmlroot=$(HTMLROOT) \
59 --podroot=.. --podpath=pod:lib:ext:vms \
60 --libpods=perlfunc:perlguts:perlvar:perlrun:perlop
61 POD2HTML = ../ext/Pod-Html/pod2html
62 POD2MAN = ../cpan/podlators/pod2man
63 POD2LATEX = ../cpan/Pod-LaTeX/pod2latex
64 PODCHECKER = ../cpan/Pod-Parser/podchecker
67 PERLILIB = $(PERL) -I../lib
72 man: $(POD2MAN) $(MAN)
74 html: $(POD2HTML) $(HTML)
76 tex: $(POD2LATEX) $(TEX)
78 toc perltoc.pod: buildtoc
79 $(PERLILIB) buildtoc --build-toc
86 $(REALPERL) -I../lib $(POD2MAN) $*.pm >$*.man
89 $(REALPERL) -I../lib $(POD2MAN) $*.pod >$*.man
94 $(PERL) -I../lib $(POD2HTML) $(POD2HTML_ARGS) --infile=$*.pm --outfile=$*.html
96 .pod.html: $(POD2HTML)
97 $(PERL) -I../lib $(POD2HTML) $(POD2HTML_ARGS) --infile=$*.pod --outfile=$*.html
101 .pm.tex: $(POD2LATEX)
102 $(PERL) -I../lib $(POD2LATEX) $*.pm
104 .pod.tex: $(POD2LATEX)
105 $(PERL) -I../lib $(POD2LATEX) $*.pod
111 rm -f pod2html-*cache
112 rm -f *.aux *.log *.exe
122 @echo "checking..."; \
123 $(PERL) -I../lib $(PODCHECKER) $(POD)