[inseparable changes from match from perl-5.003_96 to perl-5.003_97]
[p5sagit/p5-mst-13.2.git] / pod / Makefile
1 CONVERTERS = pod2html pod2latex pod2man pod2text checkpods
2
3 HTMLROOT = /    # Change this to fix cross-references in HTML
4 POD2HTML = pod2html \
5             --htmlroot=$(HTMLROOT) \
6             --podroot=.. --podpath=pod:lib:ext:vms \
7             --libpods=perlfunc:perlguts:perlvar:perlrun:perlop
8
9 all: $(CONVERTERS) man
10
11 PERL = ../miniperl
12
13 POD = \
14         perl.pod        \
15         perldelta.pod   \
16         perldata.pod    \
17         perlsyn.pod     \
18         perlop.pod      \
19         perlre.pod      \
20         perlrun.pod     \
21         perlfunc.pod    \
22         perlvar.pod     \
23         perlsub.pod     \
24         perlmod.pod     \
25         perlform.pod    \
26         perllocale.pod  \
27         perlref.pod     \
28         perldsc.pod     \
29         perllol.pod     \
30         perltoot.pod    \
31         perlobj.pod     \
32         perltie.pod     \
33         perlbot.pod     \
34         perlipc.pod     \
35         perldebug.pod   \
36         perldiag.pod    \
37         perlsec.pod     \
38         perltrap.pod    \
39         perlstyle.pod   \
40         perlpod.pod     \
41         perlbook.pod    \
42         perlembed.pod   \
43         perlapio.pod    \
44         perlxs.pod      \
45         perlxstut.pod   \
46         perlguts.pod    \
47         perlcall.pod    \
48         perlfaq.pod     \
49         perlfaq1.pod    \
50         perlfaq2.pod    \
51         perlfaq3.pod    \
52         perlfaq4.pod    \
53         perlfaq5.pod    \
54         perlfaq6.pod    \
55         perlfaq7.pod    \
56         perlfaq8.pod    \
57         perlfaq9.pod    \
58         perltoc.pod
59
60 MAN = \
61         perl.man        \
62         perldelta.man   \
63         perldata.man    \
64         perlsyn.man     \
65         perlop.man      \
66         perlre.man      \
67         perlrun.man     \
68         perlfunc.man    \
69         perlvar.man     \
70         perlsub.man     \
71         perlmod.man     \
72         perlform.man    \
73         perllocale.man  \
74         perlref.man     \
75         perldsc.man     \
76         perllol.man     \
77         perltoot.man    \
78         perlobj.man     \
79         perltie.man     \
80         perlbot.man     \
81         perlipc.man     \
82         perldebug.man   \
83         perldiag.man    \
84         perlsec.man     \
85         perltrap.man    \
86         perlstyle.man   \
87         perlpod.man     \
88         perlbook.man    \
89         perlembed.man   \
90         perlapio.man    \
91         perlxs.man      \
92         perlxstut.man   \
93         perlguts.man    \
94         perlcall.man    \
95         perlfaq.man     \
96         perlfaq1.man    \
97         perlfaq2.man    \
98         perlfaq3.man    \
99         perlfaq4.man    \
100         perlfaq5.man    \
101         perlfaq6.man    \
102         perlfaq7.man    \
103         perlfaq8.man    \
104         perlfaq9.man    \
105         perltoc.man
106
107 HTML = \
108         perl.html       \
109         perldelta.html  \
110         perldata.html   \
111         perlsyn.html    \
112         perlop.html     \
113         perlre.html     \
114         perlrun.html    \
115         perlfunc.html   \
116         perlvar.html    \
117         perlsub.html    \
118         perlmod.html    \
119         perlform.html   \
120         perllocale.html \
121         perlref.html    \
122         perldsc.html    \
123         perllol.html    \
124         perltoot.html   \
125         perlobj.html    \
126         perltie.html    \
127         perlbot.html    \
128         perlipc.html    \
129         perldebug.html  \
130         perldiag.html   \
131         perlsec.html    \
132         perltrap.html   \
133         perlstyle.html  \
134         perlpod.html    \
135         perlbook.html   \
136         perlembed.html  \
137         perlapio.html   \
138         perlxs.html     \
139         perlxstut.html  \
140         perlguts.html   \
141         perlcall.html   \
142         perlfaq.html    \
143         perlfaq1.html   \
144         perlfaq2.html   \
145         perlfaq3.html   \
146         perlfaq4.html   \
147         perlfaq5.html   \
148         perlfaq6.html   \
149         perlfaq7.html   \
150         perlfaq8.html   \
151         perlfaq9.html
152 # not perltoc.html
153
154 TEX = \
155         perl.tex        \
156         perldelta.tex   \
157         perldata.tex    \
158         perlsyn.tex     \
159         perlop.tex      \
160         perlre.tex      \
161         perlrun.tex     \
162         perlfunc.tex    \
163         perlvar.tex     \
164         perlsub.tex     \
165         perlmod.tex     \
166         perlform.tex    \
167         perllocale.tex  \
168         perlref.tex     \
169         perldsc.tex     \
170         perllol.tex     \
171         perltoot.tex    \
172         perlobj.tex     \
173         perltie.tex     \
174         perlbot.tex     \
175         perlipc.tex     \
176         perldebug.tex   \
177         perldiag.tex    \
178         perlsec.tex     \
179         perltrap.tex    \
180         perlstyle.tex   \
181         perlpod.tex     \
182         perlbook.tex    \
183         perlembed.tex   \
184         perlapio.tex    \
185         perlxs.tex      \
186         perlxstut.tex   \
187         perlguts.tex    \
188         perlcall.tex    \
189         perlfaq.tex     \
190         perlfaq1.tex    \
191         perlfaq2.tex    \
192         perlfaq3.tex    \
193         perlfaq4.tex    \
194         perlfaq5.tex    \
195         perlfaq6.tex    \
196         perlfaq7.tex    \
197         perlfaq8.tex    \
198         perlfaq9.tex    \
199         perltoc.tex
200
201 man:    pod2man $(MAN)
202
203 html:   pod2html $(HTML)
204
205 tex:    pod2latex $(TEX)
206
207 toc:
208         $(PERL) -I../lib buildtoc >perltoc.pod
209
210 .SUFFIXES: .pm .pod
211
212 .SUFFIXES: .man
213
214 .pm.man:     pod2man
215         $(PERL) -I../lib pod2man $*.pm >$*.man
216
217 .pod.man:     pod2man
218         $(PERL) -I../lib pod2man $*.pod >$*.man
219
220 .SUFFIXES: .html
221
222 .pm.html:    pod2html
223         $(PERL) -I../lib $(POD2HTML) --infile=$*.pm --outfile=$*.html
224
225 .pod.html:    pod2html
226         $(PERL) -I../lib $(POD2HTML) --infile=$*.pod --outfile=$*.html
227
228 .SUFFIXES: .tex
229
230 .pm.tex: pod2latex
231         $(PERL) -I../lib pod2latex $*.pm
232
233 .pod.tex: pod2latex
234         $(PERL) -I../lib pod2latex $*.pod
235
236 clean:
237         rm -f $(MAN) $(HTML) $(TEX)
238         rm -f pod2html-*cache
239         rm -f *.aux *.log
240
241 realclean:      clean
242         rm -f $(CONVERTERS)
243
244 distclean:      realclean
245
246 check:  checkpods
247         @echo "checking..."; \
248         $(PERL) -I../lib checkpods $(POD)
249
250 # Dependencies.
251 pod2latex:      pod2latex.PL ../lib/Config.pm
252         $(PERL) -I../lib pod2latex.PL
253
254 pod2html:       pod2html.PL ../lib/Config.pm
255         $(PERL) -I ../lib pod2html.PL
256
257 pod2man:        pod2man.PL ../lib/Config.pm
258         $(PERL) -I ../lib pod2man.PL
259
260 pod2text:       pod2text.PL ../lib/Config.pm
261         $(PERL) -I ../lib pod2text.PL
262
263 checkpods:      checkpods.PL ../lib/Config.pm
264         $(PERL) -I ../lib checkpods.PL
265
266