blob: 0dd799b1085f9ae2f3e1d7e1d63eaca7b78c06f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
|
case $PERL_CONFIG_SH in
'')
if test -f config.sh; then TOP=.;
elif test -f ../config.sh; then TOP=..;
elif test -f ../../config.sh; then TOP=../..;
elif test -f ../../../config.sh; then TOP=../../..;
elif test -f ../../../../config.sh; then TOP=../../../..;
else
echo "Can't find config.sh."; exit 1
fi
. $TOP/config.sh
;;
esac
: This forces SH files to create target in same directory as SH file.
: This is so that make depend always knows where to find SH derivatives.
case "$0" in
*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
esac
if test -d pod; then
cd pod || exit 1
fi
POD=`echo *.pod`
MAN=`echo $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)"
: This section of the file will have variable substitutions done on it.
: Move anything that needs config subs from !NO!SUBS! section to !GROK!THIS!.
: Protect any dollar signs and backticks that you do not want interpreted
: by putting a backslash in front. You may delete these comments.
$spitshell >Makefile <<!GROK!THIS!
# pod/Makefile
# This file is derived from pod/Makefile.SH. Any changes made here will
# be lost the next time you run Configure.
POD = $POD
MAN = $MAN
# no perltoc.html
HTML = $HTML
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.
$spitshell >>Makefile <<'!NO!SUBS!'
CONVERTERS = pod2html pod2latex pod2man pod2text \
pod2usage podchecker podselect
HTMLROOT = / # Change this to fix cross-references in HTML
POD2HTML = pod2html \
--htmlroot=$(HTMLROOT) \
--podroot=.. --podpath=pod:lib:ext:vms \
--libpods=perlfunc:perlguts:perlvar:perlrun:perlop
PERL = ../miniperl
PERLILIB = $(PERL) -I../lib
REALPERL = ../perl
all: $(CONVERTERS) man
converters: $(CONVERTERS)
regen_pods: perlmodlib.pod toc
perltoc.pod: buildtoc
man: pod2man $(MAN)
html: pod2html $(HTML)
tex: pod2latex $(TEX)
toc perltoc.pod: buildtoc
$(PERLILIB) buildtoc --build-toc
.SUFFIXES: .pm .pod
.SUFFIXES: .man
.pm.man: pod2man
$(REALPERL) -I../lib pod2man $*.pm >$*.man
.pod.man: pod2man
$(REALPERL) -I../lib pod2man $*.pod >$*.man
.SUFFIXES: .html
.pm.html: pod2html
$(PERL) -I../lib $(POD2HTML) --infile=$*.pm --outfile=$*.html
.pod.html: pod2html
$(PERL) -I../lib $(POD2HTML) --infile=$*.pod --outfile=$*.html
.SUFFIXES: .tex
.pm.tex: pod2latex
$(PERL) -I../lib pod2latex $*.pm
.pod.tex: pod2latex
$(PERL) -I../lib pod2latex $*.pod
clean:
rm -f $(MAN)
rm -f $(HTML)
rm -f $(TEX)
rm -f pod2html-*cache
rm -f *.aux *.log *.exe
realclean: clean
rm -f $(CONVERTERS)
distclean: realclean
veryclean: distclean
-rm -f *~ *.orig
check: podchecker
@echo "checking..."; \
$(PERL) -I../lib podchecker $(POD)
# Dependencies.
pod2latex: pod2latex.PL ../lib/Config.pm
$(LDLIBPTH) $(PERL) -I../lib pod2latex.PL
pod2html: pod2html.PL ../lib/Config.pm
$(LDLIBPTH) $(PERL) -I ../lib pod2html.PL
pod2man: pod2man.PL ../lib/Config.pm
$(LDLIBPTH) $(PERL) -I ../lib pod2man.PL
pod2text: pod2text.PL ../lib/Config.pm
$(LDLIBPTH) $(PERL) -I ../lib pod2text.PL
pod2usage: pod2usage.PL ../lib/Config.pm
$(PERL) -I ../lib pod2usage.PL
podchecker: podchecker.PL ../lib/Config.pm
$(PERL) -I ../lib podchecker.PL
podselect: podselect.PL ../lib/Config.pm
$(PERL) -I ../lib podselect.PL
perlmodlib.pod: $(PERL) perlmodlib.PL ../MANIFEST
rm -f perlmodlib.pod
$(PERL) -I ../lib perlmodlib.PL
!NO!SUBS!
|