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