Integrate from mainperl.
[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 converters: $(CONVERTERS)
12
13 PERL = ../miniperl
14 REALPERL = ../perl
15
16 POD = \
17         perl.pod        \
18         perldelta.pod   \
19         perldata.pod    \
20         perlsyn.pod     \
21         perlop.pod      \
22         perlre.pod      \
23         perlrun.pod     \
24         perlfunc.pod    \
25         perlopentut.pod \
26         perlvar.pod     \
27         perlsub.pod     \
28         perlmod.pod     \
29         perlmodlib.pod  \
30         perlmodinstall.pod      \
31         perlform.pod    \
32         perllocale.pod  \
33         perlref.pod     \
34         perlreftut.pod  \
35         perldsc.pod     \
36         perllol.pod     \
37         perltoot.pod    \
38         perlobj.pod     \
39         perltie.pod     \
40         perlbot.pod     \
41         perlipc.pod     \
42         perlthrtut.pod  \
43         perldebug.pod   \
44         perldiag.pod    \
45         perlsec.pod     \
46         perltrap.pod    \
47         perlport.pod    \
48         perlstyle.pod   \
49         perlpod.pod     \
50         perlbook.pod    \
51         perlembed.pod   \
52         perlapio.pod    \
53         perlxs.pod      \
54         perlxstut.pod   \
55         perlguts.pod    \
56         perlcall.pod    \
57         perlfaq.pod     \
58         perlfaq1.pod    \
59         perlfaq2.pod    \
60         perlfaq3.pod    \
61         perlfaq4.pod    \
62         perlfaq5.pod    \
63         perlfaq6.pod    \
64         perlfaq7.pod    \
65         perlfaq8.pod    \
66         perlfaq9.pod    \
67         perltoc.pod
68
69 MAN = \
70         perl.man        \
71         perldelta.man   \
72         perldata.man    \
73         perlsyn.man     \
74         perlop.man      \
75         perlre.man      \
76         perlrun.man     \
77         perlfunc.man    \
78         perlopentut.man \
79         perlvar.man     \
80         perlsub.man     \
81         perlmod.man     \
82         perlmodlib.man  \
83         perlmodinstall.man      \
84         perlform.man    \
85         perllocale.man  \
86         perlref.man     \
87         perlreftut.man  \
88         perldsc.man     \
89         perllol.man     \
90         perltoot.man    \
91         perlobj.man     \
92         perltie.man     \
93         perlbot.man     \
94         perlipc.man     \
95         perlthrtut.man  \
96         perldebug.man   \
97         perldiag.man    \
98         perlsec.man     \
99         perltrap.man    \
100         perlport.man    \
101         perlstyle.man   \
102         perlpod.man     \
103         perlbook.man    \
104         perlembed.man   \
105         perlapio.man    \
106         perlxs.man      \
107         perlxstut.man   \
108         perlguts.man    \
109         perlcall.man    \
110         perlfaq.man     \
111         perlfaq1.man    \
112         perlfaq2.man    \
113         perlfaq3.man    \
114         perlfaq4.man    \
115         perlfaq5.man    \
116         perlfaq6.man    \
117         perlfaq7.man    \
118         perlfaq8.man    \
119         perlfaq9.man    \
120         perltoc.man
121
122 HTML = \
123         perl.html       \
124         perldelta.html  \
125         perldata.html   \
126         perlsyn.html    \
127         perlop.html     \
128         perlre.html     \
129         perlrun.html    \
130         perlfunc.html   \
131         perlopentut.html        \
132         perlvar.html    \
133         perlsub.html    \
134         perlmod.html    \
135         perlmodlib.html \
136         perlmodinstall.html     \
137         perlform.html   \
138         perllocale.html \
139         perlref.html    \
140         perlreftut.html \
141         perldsc.html    \
142         perllol.html    \
143         perltoot.html   \
144         perlobj.html    \
145         perltie.html    \
146         perlbot.html    \
147         perlipc.html    \
148         perlthrtut.html \
149         perldebug.html  \
150         perldiag.html   \
151         perlsec.html    \
152         perltrap.html   \
153         perlport.html   \
154         perlstyle.html  \
155         perlpod.html    \
156         perlbook.html   \
157         perlembed.html  \
158         perlapio.html   \
159         perlxs.html     \
160         perlxstut.html  \
161         perlguts.html   \
162         perlcall.html   \
163         perlfaq.html    \
164         perlfaq1.html   \
165         perlfaq2.html   \
166         perlfaq3.html   \
167         perlfaq4.html   \
168         perlfaq5.html   \
169         perlfaq6.html   \
170         perlfaq7.html   \
171         perlfaq8.html   \
172         perlfaq9.html
173 # not perltoc.html
174
175 TEX = \
176         perl.tex        \
177         perldelta.tex   \
178         perldata.tex    \
179         perlsyn.tex     \
180         perlop.tex      \
181         perlre.tex      \
182         perlrun.tex     \
183         perlfunc.tex    \
184         perlopentut.tex \
185         perlvar.tex     \
186         perlsub.tex     \
187         perlmod.tex     \
188         perlmodlib.tex  \
189         perlmodinstall.tex      \
190         perlform.tex    \
191         perllocale.tex  \
192         perlref.tex     \
193         perlreftut.tex  \
194         perldsc.tex     \
195         perllol.tex     \
196         perltoot.tex    \
197         perlobj.tex     \
198         perltie.tex     \
199         perlbot.tex     \
200         perlipc.tex     \
201         perlthrtut.tex  \
202         perldebug.tex   \
203         perldiag.tex    \
204         perlsec.tex     \
205         perltrap.tex    \
206         perlport.tex    \
207         perlstyle.tex   \
208         perlpod.tex     \
209         perlbook.tex    \
210         perlembed.tex   \
211         perlapio.tex    \
212         perlxs.tex      \
213         perlxstut.tex   \
214         perlguts.tex    \
215         perlcall.tex    \
216         perlfaq.tex     \
217         perlfaq1.tex    \
218         perlfaq2.tex    \
219         perlfaq3.tex    \
220         perlfaq4.tex    \
221         perlfaq5.tex    \
222         perlfaq6.tex    \
223         perlfaq7.tex    \
224         perlfaq8.tex    \
225         perlfaq9.tex    \
226         perltoc.tex
227
228 man:    pod2man $(MAN)
229
230 html:   pod2html $(HTML)
231
232 tex:    pod2latex $(TEX)
233
234 toc:
235         $(PERL) -I../lib buildtoc >perltoc.pod
236
237 .SUFFIXES: .pm .pod
238
239 .SUFFIXES: .man
240
241 .pm.man:     pod2man
242         $(PERL) -I../lib pod2man $*.pm >$*.man
243
244 .pod.man:     pod2man
245         $(PERL) -I../lib pod2man $*.pod >$*.man
246
247 .SUFFIXES: .html
248
249 .pm.html:    pod2html
250         $(PERL) -I../lib $(POD2HTML) --infile=$*.pm --outfile=$*.html
251
252 .pod.html:    pod2html
253         $(PERL) -I../lib $(POD2HTML) --infile=$*.pod --outfile=$*.html
254
255 .SUFFIXES: .tex
256
257 .pm.tex: pod2latex
258         $(PERL) -I../lib pod2latex $*.pm
259
260 .pod.tex: pod2latex
261         $(PERL) -I../lib pod2latex $*.pod
262
263 clean:
264         rm -f $(MAN)
265         rm -f $(HTML)
266         rm -f $(TEX)
267         rm -f pod2html-*cache
268         rm -f *.aux *.log *.exe
269
270 realclean:      clean
271         rm -f $(CONVERTERS)
272
273 distclean:      realclean
274
275 check:  checkpods
276         @echo "checking..."; \
277         $(PERL) -I../lib checkpods $(POD)
278
279 # Dependencies.
280 pod2latex:      pod2latex.PL ../lib/Config.pm
281         $(PERL) -I../lib pod2latex.PL
282
283 pod2html:       pod2html.PL ../lib/Config.pm
284         $(PERL) -I ../lib pod2html.PL
285
286 pod2man:        pod2man.PL ../lib/Config.pm
287         $(PERL) -I ../lib pod2man.PL
288
289 pod2text:       pod2text.PL ../lib/Config.pm
290         $(PERL) -I ../lib pod2text.PL
291
292 checkpods:      checkpods.PL ../lib/Config.pm
293         $(PERL) -I ../lib checkpods.PL
294
295 compile: all
296         $(REALPERL) -I../lib ../utils/perlcc -regex 's/$$/.exe/' pod2latex pod2man pod2text checkpods -prog -verbose dcf -log ../compilelog;
297
298