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