f71542bc28630fafc01800c9a06ea67f66309ad3
[p5sagit/p5-mst-13.2.git] / win32 / pod.mak
1 CONVERTERS = pod2html pod2latex pod2man pod2text checkpods \
2                 pod2usage podchecker podselect
3
4 HTMLROOT = /    # Change this to fix cross-references in HTML
5 POD2HTML = pod2html \
6             --htmlroot=$(HTMLROOT) \
7             --podroot=.. --podpath=pod:lib:ext:vms \
8             --libpods=perlfunc:perlguts:perlvar:perlrun:perlop
9
10 all: $(CONVERTERS) html
11
12 converters: $(CONVERTERS)
13
14 PERL = ..\miniperl.exe
15 REALPERL = ..\perl.exe
16
17 POD = \
18         perl.pod        \
19         perldelta.pod   \
20         perl5004delta.pod       \
21         perl5005delta.pod       \
22         perldata.pod    \
23         perlsyn.pod     \
24         perlop.pod      \
25         perlre.pod      \
26         perlreref.pod   \
27         perlretut.pod   \
28         perlrequick.pod \
29         perlrun.pod     \
30         perlfunc.pod    \
31         perlopentut.pod \
32         perlvar.pod     \
33         perlsub.pod     \
34         perlmod.pod     \
35         perlmodlib.pod  \
36         perlmodinstall.pod      \
37         perlform.pod    \
38         perllocale.pod  \
39         perlunicode.pod \
40         perluniintro.pod        \
41         perlref.pod     \
42         perlreftut.pod  \
43         perldsc.pod     \
44         perllol.pod     \
45         perltoot.pod    \
46         perlobj.pod     \
47         perltie.pod     \
48         perlbot.pod     \
49         perlipc.pod     \
50         perlthrtut.pod  \
51         perldebug.pod   \
52         perldiag.pod    \
53         perlsec.pod     \
54         perltrap.pod    \
55         perlcheat.pod   \
56         perlport.pod    \
57         perlstyle.pod   \
58         perlpod.pod     \
59         perlbook.pod    \
60         perlembed.pod   \
61         perlapio.pod    \
62         perlwin32.pod   \
63         perlxs.pod      \
64         perlxstut.pod   \
65         perlguts.pod    \
66         perlcall.pod    \
67         perltodo.pod    \
68         perlhist.pod    \
69         perlfaq.pod     \
70         perlfaq1.pod    \
71         perlfaq2.pod    \
72         perlfaq3.pod    \
73         perlfaq4.pod    \
74         perlfaq5.pod    \
75         perlfaq6.pod    \
76         perlfaq7.pod    \
77         perlfaq8.pod    \
78         perlfaq9.pod    \
79         perltoc.pod
80
81 MAN = \
82         perl.man        \
83         perldelta.man   \
84         perl5004delta.man       \
85         perl5005delta.man       \
86         perldata.man    \
87         perlsyn.man     \
88         perlop.man      \
89         perlre.man      \
90         perlreref.man   \
91         perlretut.man   \
92         perlrequick.man \
93         perlrun.man     \
94         perlfunc.man    \
95         perlopentut.man \
96         perlvar.man     \
97         perlsub.man     \
98         perlmod.man     \
99         perlmodlib.man  \
100         perlmodinstall.man      \
101         perlform.man    \
102         perllocale.man  \
103         perlunicode.man \
104         perluniintro.man        \
105         perlref.man     \
106         perlreftut.man  \
107         perldsc.man     \
108         perllol.man     \
109         perltoot.man    \
110         perlobj.man     \
111         perltie.man     \
112         perlbot.man     \
113         perlipc.man     \
114         perlthrtut.man  \
115         perldebug.man   \
116         perldiag.man    \
117         perlsec.man     \
118         perltrap.man    \
119         perlcheat.man   \
120         perlport.man    \
121         perlstyle.man   \
122         perlpod.man     \
123         perlbook.man    \
124         perlembed.man   \
125         perlapio.man    \
126         perlwin32.man   \
127         perlxs.man      \
128         perlxstut.man   \
129         perlguts.man    \
130         perlcall.man    \
131         perltodo.man    \
132         perlhist.man    \
133         perlfaq.man     \
134         perlfaq1.man    \
135         perlfaq2.man    \
136         perlfaq3.man    \
137         perlfaq4.man    \
138         perlfaq5.man    \
139         perlfaq6.man    \
140         perlfaq7.man    \
141         perlfaq8.man    \
142         perlfaq9.man    \
143         perltoc.man
144
145 HTML = \
146         perl.html       \
147         perldelta.html  \
148         perl5004delta.html      \
149         perl5005delta.html      \
150         perldata.html   \
151         perlsyn.html    \
152         perlop.html     \
153         perlre.html     \
154         perlreref.html  \
155         perlretut.html  \
156         perlrequick.html        \
157         perlrun.html    \
158         perlfunc.html   \
159         perlopentut.html        \
160         perlvar.html    \
161         perlsub.html    \
162         perlmod.html    \
163         perlmodlib.html \
164         perlmodinstall.html     \
165         perlform.html   \
166         perllocale.html \
167         perlunicode.html        \
168         perluniintro.html       \
169         perlref.html    \
170         perlreftut.html \
171         perldsc.html    \
172         perllol.html    \
173         perltoot.html   \
174         perlobj.html    \
175         perltie.html    \
176         perlbot.html    \
177         perlipc.html    \
178         perlthrtut.html \
179         perldebug.html  \
180         perldiag.html   \
181         perlsec.html    \
182         perltrap.html   \
183         perlcheat.html  \
184         perlport.html   \
185         perlstyle.html  \
186         perlpod.html    \
187         perlbook.html   \
188         perlembed.html  \
189         perlapio.html   \
190         perlwin32.html  \
191         perlxs.html     \
192         perlxstut.html  \
193         perlguts.html   \
194         perlcall.html   \
195         perltodo.html   \
196         perlhist.html   \
197         perlfaq.html    \
198         perlfaq1.html   \
199         perlfaq2.html   \
200         perlfaq3.html   \
201         perlfaq4.html   \
202         perlfaq5.html   \
203         perlfaq6.html   \
204         perlfaq7.html   \
205         perlfaq8.html   \
206         perlfaq9.html
207 # not perltoc.html
208
209 TEX = \
210         perl.tex        \
211         perldelta.tex   \
212         perl5004delta.tex       \
213         perl5005delta.tex       \
214         perldata.tex    \
215         perlsyn.tex     \
216         perlop.tex      \
217         perlre.tex      \
218         perlreref.tex   \
219         perlretut.tex   \
220         perlrequick.tex \
221         perlrun.tex     \
222         perlfunc.tex    \
223         perlopentut.tex \
224         perlvar.tex     \
225         perlsub.tex     \
226         perlmod.tex     \
227         perlmodlib.tex  \
228         perlmodinstall.tex      \
229         perlform.tex    \
230         perllocale.tex  \
231         perlunicode.tex \
232         perluniintro.tex        \
233         perlref.tex     \
234         perlreftut.tex  \
235         perldsc.tex     \
236         perllol.tex     \
237         perltoot.tex    \
238         perlobj.tex     \
239         perltie.tex     \
240         perlbot.tex     \
241         perlipc.tex     \
242         perlthrtut.tex  \
243         perldebug.tex   \
244         perldiag.tex    \
245         perlsec.tex     \
246         perltrap.tex    \
247         perlcheat.tex   \
248         perlport.tex    \
249         perlstyle.tex   \
250         perlpod.tex     \
251         perlbook.tex    \
252         perlembed.tex   \
253         perlapio.tex    \
254         perlwin32.tex   \
255         perlxs.tex      \
256         perlxstut.tex   \
257         perlguts.tex    \
258         perlcall.tex    \
259         perltodo.tex    \
260         perlhist.tex    \
261         perlfaq.tex     \
262         perlfaq1.tex    \
263         perlfaq2.tex    \
264         perlfaq3.tex    \
265         perlfaq4.tex    \
266         perlfaq5.tex    \
267         perlfaq6.tex    \
268         perlfaq7.tex    \
269         perlfaq8.tex    \
270         perlfaq9.tex    \
271         perltoc.tex
272
273 man:    pod2man $(MAN)
274
275 html:   pod2html $(HTML)
276
277 tex:    pod2latex $(TEX)
278
279 toc:
280         $(PERL) -I../lib buildtoc >perltoc.pod
281
282 .SUFFIXES: .pm .pod
283
284 .SUFFIXES: .man
285
286 .pm.man:
287         $(PERL) -I../lib pod2man $*.pm >$*.man
288
289 .pod.man:
290         $(PERL) -I../lib pod2man $*.pod >$*.man
291
292 .SUFFIXES: .html
293
294 .pm.html:
295         $(PERL) -I../lib $(POD2HTML) --infile=$*.pm --outfile=$*.html
296
297 .pod.html:
298         $(PERL) -I../lib $(POD2HTML) --infile=$*.pod --outfile=$*.html
299
300 .SUFFIXES: .tex
301
302 .pm.tex:
303         $(PERL) -I../lib pod2latex $*.pm
304
305 .pod.tex:
306         $(PERL) -I../lib pod2latex $*.pod
307
308 clean:
309         rm -f $(MAN)
310         rm -f $(HTML)
311         rm -f $(TEX)
312         rm -f pod2html-*cache
313         rm -f *.aux *.log *.exe
314
315 realclean:      clean
316         rm -f $(CONVERTERS)
317
318 distclean:      realclean
319
320 check:  checkpods
321         @echo "checking..."; \
322         $(PERL) -I../lib checkpods $(POD)
323
324 # Dependencies.
325 pod2latex:      pod2latex.PL ../lib/Config.pm
326         $(PERL) -I../lib pod2latex.PL
327
328 pod2html:       pod2html.PL ../lib/Config.pm
329         $(PERL) -I ../lib pod2html.PL
330
331 pod2man:        pod2man.PL ../lib/Config.pm
332         $(PERL) -I ../lib pod2man.PL
333
334 pod2text:       pod2text.PL ../lib/Config.pm
335         $(PERL) -I ../lib pod2text.PL
336
337 checkpods:      checkpods.PL ../lib/Config.pm
338         $(PERL) -I ../lib checkpods.PL
339
340 pod2usage:      pod2usage.PL ../lib/Config.pm
341         $(PERL) -I ../lib pod2usage.PL
342
343 podchecker:     podchecker.PL ../lib/Config.pm
344         $(PERL) -I ../lib podchecker.PL
345
346 podselect:      podselect.PL ../lib/Config.pm
347         $(PERL) -I ../lib podselect.PL
348
349 compile: all
350         $(REALPERL) -I../lib ../utils/perlcc pod2latex -o pod2latex.exe -v 10 -log ../compilelog
351         $(REALPERL) -I../lib ../utils/perlcc pod2man -o pod2man.exe -v 10 -log ../compilelog
352         $(REALPERL) -I../lib ../utils/perlcc pod2text -o pod2text.exe -v 10 -log ../compilelog
353         $(REALPERL) -I../lib ../utils/perlcc checkpods -o checkpods.exe -v 10 -log ../compilelog