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 CONVERTERS = pod2html pod2latex pod2man pod2text checkpods \
58 pod2usage podchecker podselect
60 HTMLROOT = / # Change this to fix cross-references in HTML
62 --htmlroot=$(HTMLROOT) \
63 --podroot=.. --podpath=pod:lib:ext:vms \
64 --libpods=perlfunc:perlguts:perlvar:perlrun:perlop
69 all: $(CONVERTERS) man
71 converters: $(CONVERTERS)
73 regen_pods: perlmodlib.pod toc
75 buildtoc: buildtoc.PL perl.pod ../MANIFEST
82 html: pod2html $(HTML)
94 $(PERL) -I../lib pod2man $*.pm >$*.man
97 $(PERL) -I../lib pod2man $*.pod >$*.man
102 $(PERL) -I../lib $(POD2HTML) --infile=$*.pm --outfile=$*.html
105 $(PERL) -I../lib $(POD2HTML) --infile=$*.pod --outfile=$*.html
110 $(PERL) -I../lib pod2latex $*.pm
113 $(PERL) -I../lib pod2latex $*.pod
119 rm -f pod2html-*cache
120 rm -f *.aux *.log *.exe
131 @echo "checking..."; \
132 $(PERL) -I../lib checkpods $(POD)
135 pod2latex: pod2latex.PL ../lib/Config.pm
136 $(LDLIBPTH) $(PERL) -I../lib pod2latex.PL
138 pod2html: pod2html.PL ../lib/Config.pm
139 $(LDLIBPTH) $(PERL) -I ../lib pod2html.PL
141 pod2man: pod2man.PL ../lib/Config.pm
142 $(LDLIBPTH) $(PERL) -I ../lib pod2man.PL
144 pod2text: pod2text.PL ../lib/Config.pm
145 $(LDLIBPTH) $(PERL) -I ../lib pod2text.PL
147 checkpods: checkpods.PL ../lib/Config.pm
148 $(LDLIBPTH) $(PERL) -I ../lib checkpods.PL
150 pod2usage: pod2usage.PL ../lib/Config.pm
151 $(PERL) -I ../lib pod2usage.PL
153 podchecker: podchecker.PL ../lib/Config.pm
154 $(PERL) -I ../lib podchecker.PL
156 podselect: podselect.PL ../lib/Config.pm
157 $(PERL) -I ../lib podselect.PL
159 perlmodlib.pod: $(PERL) perlmodlib.PL ../mv-if-diff
161 $(PERL) -I ../lib perlmodlib.PL
162 sh ../mv-if-diff perlmodlib.tmp perlmodlib.pod
165 $(REALPERL) -I../lib ../utils/perlcc -regex 's/$$/.exe/' pod2latex pod2man pod2text checkpods -prog -verbose dcf -log ../compilelog;