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