Commit | Line | Data |
---|---|---|
a8d46980 | 1 | #### -*- Makefile -*- for documentation other than the Emacs manual. |
4009494e | 2 | |
6ed161e1 | 3 | # Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 |
97c0352c | 4 | # Free Software Foundation, Inc. |
4009494e GM |
5 | |
6 | # This file is part of GNU Emacs. | |
7 | ||
97c0352c | 8 | # GNU Emacs is free software: you can redistribute it and/or modify |
4009494e | 9 | # it under the terms of the GNU General Public License as published by |
97c0352c GM |
10 | # the Free Software Foundation, either version 3 of the License, or |
11 | # (at your option) any later version. | |
4009494e GM |
12 | |
13 | # GNU Emacs is distributed in the hope that it will be useful, | |
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | # GNU General Public License for more details. | |
17 | ||
18 | # You should have received a copy of the GNU General Public License | |
97c0352c GM |
19 | # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
20 | ||
4009494e GM |
21 | |
22 | # Where to find the source code. The source code for Emacs's C kernel is | |
23 | # expected to be in $(srcdir)/src, and the source code for Emacs's | |
24 | # utility programs is expected to be in $(srcdir)/lib-src. This is | |
25 | # set by the configure script's `--srcdir' option. | |
26 | srcdir=. | |
27 | ||
a8d46980 | 28 | infodir = $(srcdir)/../../info |
4009494e GM |
29 | |
30 | # The makeinfo program is part of the Texinfo distribution. | |
31 | MAKEINFO = makeinfo --force | |
a8d46980 GM |
32 | MULTI_INSTALL_INFO = $(srcdir)\..\..\nt\multi-install-info.bat |
33 | INFO_TARGETS = $(infodir)/ccmode \ | |
1682490c JB |
34 | $(infodir)/cl $(infodir)/dbus $(infodir)/dired-x \ |
35 | $(infodir)/ediff $(infodir)/forms $(infodir)/gnus \ | |
36 | $(infodir)/message $(infodir)/sieve $(infodir)/pgg \ | |
37 | $(infodir)/emacs-mime $(infodir)/info $(infodir)/mh-e \ | |
38 | $(infodir)/reftex $(infodir)/sc $(infodir)/vip \ | |
39 | $(infodir)/viper $(infodir)/widget $(infodir)/efaq \ | |
40 | $(infodir)/ada-mode $(infodir)/autotype $(infodir)/calc \ | |
41 | $(infodir)/idlwave $(infodir)/eudc $(infodir)/ebrowse \ | |
42 | $(infodir)/pcl-cvs $(infodir)/woman $(infodir)/eshell \ | |
43 | $(infodir)/org $(infodir)/url $(infodir)/speedbar \ | |
44 | $(infodir)/tramp $(infodir)/ses $(infodir)/smtpmail \ | |
45 | $(infodir)/flymake $(infodir)/newsticker $(infodir)/rcirc \ | |
bca98fc9 | 46 | $(infodir)/erc $(infodir)/remember $(infodir)/nxml-mode \ |
35ed8e2e JB |
47 | $(infodir)/epa $(infodir)/mairix-el $(infodir)/sasl \ |
48 | $(infodir)/auth | |
1682490c JB |
49 | DVI_TARGETS = calc.dvi cc-mode.dvi cl.dvi dbus.dvi dired-x.dvi \ |
50 | ediff.dvi forms.dvi gnus.dvi message.dvi emacs-mime.dvi \ | |
4997d802 | 51 | sieve.dvi pgg.dvi mh-e.dvi \ |
1682490c JB |
52 | reftex.dvi sc.dvi vip.dvi viper.dvi widget.dvi faq.dvi \ |
53 | ada-mode.dvi autotype.dvi idlwave.dvi eudc.dvi ebrowse.dvi \ | |
54 | pcl-cvs.dvi woman.dvi eshell.dvi org.dvi url.dvi \ | |
55 | speedbar.dvi tramp.dvi ses.dvi smtpmail.dvi flymake.dvi \ | |
bca98fc9 | 56 | newsticker.dvi rcirc.dvi erc.dvi remember.dvi nxml-mode.dvi \ |
35ed8e2e | 57 | epa.dvi mairix-el.dvi sasl.dvi auth.dvi |
4009494e GM |
58 | INFOSOURCES = info.texi |
59 | ||
60 | # The following rule does not work with all versions of `make'. | |
61 | .SUFFIXES: .texi .dvi | |
62 | .texi.dvi: | |
63 | texi2dvi $< | |
64 | ||
65 | TEXI2DVI = texi2dvi | |
a8d46980 | 66 | ENVADD = $(srcdir)\..\..\nt\envadd.bat "TEXINPUTS=$(srcdir);$(TEXINPUTS)" \ |
4009494e GM |
67 | "MAKEINFO=$(MAKEINFO) -I$(srcdir)" /C |
68 | ||
4009494e | 69 | |
f272c0fd | 70 | info: $(INFO_TARGETS) |
4009494e GM |
71 | |
72 | dvi: $(DVI_TARGETS) | |
73 | ||
74 | # Note that all the Info targets build the Info files | |
75 | # in srcdir. There is no provision for Info files | |
76 | # to exist in the build directory. | |
77 | # In a distribution of Emacs, the Info files should be up to date. | |
78 | ||
f272c0fd JR |
79 | $(infodir)/dir: |
80 | $(MULTI_INSTALL_INFO) --info-dir=$(infodir) $(INFO_TARGETS) | |
81 | ||
4009494e GM |
82 | # The following target uses an explicit -o switch to work around |
83 | # the @setfilename directive in info.texi, which is required for | |
84 | # the Texinfo distribution. | |
85 | # Some Windows ports of makeinfo seem to require -o to come before the | |
86 | # texi filename, contrary to GNU standards. | |
87 | ||
4009494e GM |
88 | $(infodir)/info: $(INFOSOURCES) |
89 | $(MAKEINFO) --no-split -o $@ info.texi | |
90 | ||
91 | info.dvi: $(INFOSOURCES) | |
92 | $(ENVADD) $(TEXI2DVI) $(srcdir)/info.texi | |
93 | ||
4009494e GM |
94 | |
95 | $(infodir)/ccmode: cc-mode.texi | |
96 | $(MAKEINFO) cc-mode.texi | |
97 | cc-mode.dvi: cc-mode.texi | |
98 | $(ENVADD) $(TEXI2DVI) $(srcdir)/cc-mode.texi | |
99 | ||
100 | $(infodir)/ada-mode: ada-mode.texi | |
101 | $(MAKEINFO) ada-mode.texi | |
102 | ada-mode.dvi: ada-mode.texi | |
103 | $(ENVADD) $(TEXI2DVI) $(srcdir)/ada-mode.texi | |
104 | ||
105 | $(infodir)/pcl-cvs: pcl-cvs.texi | |
106 | $(MAKEINFO) pcl-cvs.texi | |
107 | pcl-cvs.dvi: pcl-cvs.texi | |
108 | $(ENVADD) $(TEXI2DVI) $(srcdir)/pcl-cvs.texi | |
109 | ||
110 | $(infodir)/eshell: eshell.texi | |
111 | $(MAKEINFO) eshell.texi | |
112 | eshell.dvi: eshell.texi | |
113 | $(ENVADD) $(TEXI2DVI) $(srcdir)/eshell.texi | |
114 | ||
115 | $(infodir)/cl: cl.texi | |
116 | $(MAKEINFO) cl.texi | |
117 | cl.dvi: cl.texi | |
118 | $(ENVADD) $(TEXI2DVI) $(srcdir)/cl.texi | |
119 | ||
1682490c JB |
120 | $(infodir)/dbus: dbus.texi |
121 | $(MAKEINFO) dbus.texi | |
122 | dbus.dvi: dbus.texi | |
123 | $(ENVADD) $(TEXI2DVI) $(srcdir)/dbus.texi | |
124 | ||
4009494e GM |
125 | $(infodir)/dired-x: dired-x.texi |
126 | $(MAKEINFO) dired-x.texi | |
127 | dired-x.dvi: dired-x.texi | |
128 | $(ENVADD) $(TEXI2DVI) $(srcdir)/dired-x.texi | |
129 | ||
130 | $(infodir)/ediff: ediff.texi | |
131 | $(MAKEINFO) ediff.texi | |
132 | ediff.dvi: ediff.texi | |
133 | $(ENVADD) $(TEXI2DVI) $(srcdir)/ediff.texi | |
134 | ||
135 | $(infodir)/flymake: flymake.texi | |
136 | $(MAKEINFO) flymake.texi | |
137 | flymake.dvi: flymake.texi | |
138 | $(ENVADD) $(TEXI2DVI) $(srcdir)/flymake.texi | |
139 | ||
140 | $(infodir)/forms: forms.texi | |
141 | $(MAKEINFO) forms.texi | |
142 | forms.dvi: forms.texi | |
143 | $(ENVADD) $(TEXI2DVI) $(srcdir)/forms.texi | |
144 | ||
145 | # gnus/message/emacs-mime/sieve/pgg are part of Gnus: | |
146 | $(infodir)/gnus: gnus.texi | |
147 | $(MAKEINFO) gnus.texi | |
148 | gnus.dvi: gnus.texi | |
149 | sed -e "/@iflatex/,/@end iflatex/d" $(srcdir)/gnus.texi > gnustmp.texi | |
150 | $(ENVADD) $(TEXI2DVI) gnustmp.texi | |
151 | cp gnustmp.dvi $*.dvi | |
152 | rm gnustmp.* | |
153 | # | |
154 | $(infodir)/message: message.texi | |
155 | $(MAKEINFO) message.texi | |
156 | message.dvi: message.texi | |
157 | $(ENVADD) $(TEXI2DVI) $(srcdir)/message.texi | |
158 | # | |
159 | $(infodir)/emacs-mime: emacs-mime.texi | |
160 | $(MAKEINFO) --enable-encoding emacs-mime.texi | |
161 | emacs-mime.dvi: emacs-mime.texi | |
162 | $(ENVADD) $(TEXI2DVI) $(srcdir)/emacs-mime.texi | |
163 | # | |
164 | $(infodir)/sieve: sieve.texi | |
165 | $(MAKEINFO) sieve.texi | |
166 | sieve.dvi: sieve.texi | |
167 | $(ENVADD) $(TEXI2DVI) $(srcdir)/sieve.texi | |
168 | # | |
169 | $(infodir)/pgg: pgg.texi | |
170 | $(MAKEINFO) pgg.texi | |
171 | pgg.dvi: pgg.texi | |
172 | $(ENVADD) $(TEXI2DVI) $(srcdir)/pgg.texi | |
173 | ||
174 | $(infodir)/mh-e: mh-e.texi | |
175 | $(MAKEINFO) mh-e.texi | |
176 | mh-e.dvi: mh-e.texi | |
177 | $(ENVADD) $(TEXI2DVI) $(srcdir)/mh-e.texi | |
178 | ||
179 | $(infodir)/reftex: reftex.texi | |
180 | $(MAKEINFO) reftex.texi | |
181 | reftex.dvi: reftex.texi | |
182 | $(ENVADD) $(TEXI2DVI) $(srcdir)/reftex.texi | |
183 | ||
b6173182 JB |
184 | $(infodir)/remember: remember.texi |
185 | $(MAKEINFO) remember.texi | |
186 | remember.dvi: remember.texi | |
187 | $(ENVADD) $(TEXI2DVI) $(srcdir)/remember.texi | |
188 | ||
4997d802 JB |
189 | $(infodir)/sasl: sasl.texi |
190 | $(MAKEINFO) sasl.texi | |
191 | sasl.dvi: sasl.texi | |
192 | $(ENVADD) $(TEXI2DVI) $(srcdir)/sasl.texi | |
193 | ||
4009494e GM |
194 | $(infodir)/sc: sc.texi |
195 | $(MAKEINFO) sc.texi | |
196 | sc.dvi: sc.texi | |
197 | $(ENVADD) $(TEXI2DVI) $(srcdir)/sc.texi | |
198 | ||
199 | $(infodir)/vip: vip.texi | |
200 | $(MAKEINFO) vip.texi | |
201 | vip.dvi: vip.texi | |
202 | $(ENVADD) $(TEXI2DVI) $(srcdir)/vip.texi | |
203 | ||
204 | $(infodir)/viper: viper.texi | |
205 | $(MAKEINFO) viper.texi | |
206 | viper.dvi: viper.texi | |
207 | $(ENVADD) $(TEXI2DVI) $(srcdir)/viper.texi | |
208 | ||
209 | $(infodir)/widget: widget.texi | |
210 | $(MAKEINFO) widget.texi | |
211 | widget.dvi: widget.texi | |
212 | $(ENVADD) $(TEXI2DVI) $(srcdir)/widget.texi | |
213 | ||
214 | $(infodir)/efaq: faq.texi | |
215 | $(MAKEINFO) faq.texi | |
216 | faq.dvi: faq.texi | |
217 | $(ENVADD) $(TEXI2DVI) $(srcdir)/faq.texi | |
218 | ||
4009494e GM |
219 | $(infodir)/autotype: autotype.texi |
220 | $(MAKEINFO) autotype.texi | |
221 | autotype.dvi: autotype.texi | |
222 | $(ENVADD) $(TEXI2DVI) $(srcdir)/autotype.texi | |
223 | ||
224 | $(infodir)/calc: calc.texi | |
225 | $(MAKEINFO) calc.texi | |
226 | ||
227 | calc.dvi: calc.texi | |
228 | $(ENVADD) $(TEXI2DVI) $(srcdir)/calc.texi | |
229 | ||
230 | # This is produced with --no-split to avoid making files whose | |
231 | # names clash on DOS 8+3 filesystems | |
232 | $(infodir)/idlwave: idlwave.texi | |
233 | $(MAKEINFO) --no-split idlwave.texi | |
234 | idlwave.dvi: idlwave.texi | |
235 | $(ENVADD) $(TEXI2DVI) $(srcdir)/idlwave.texi | |
236 | ||
237 | $(infodir)/eudc: eudc.texi | |
238 | $(MAKEINFO) eudc.texi | |
239 | eudc.dvi: eudc.texi | |
240 | $(ENVADD) $(TEXI2DVI) $(srcdir)/eudc.texi | |
241 | ||
242 | $(infodir)/ebrowse: ebrowse.texi | |
243 | $(MAKEINFO) ebrowse.texi | |
244 | ebrowse.dvi: ebrowse.texi | |
245 | $(ENVADD) $(TEXI2DVI) $(srcdir)/ebrowse.texi | |
246 | ||
247 | $(infodir)/woman: woman.texi | |
248 | $(MAKEINFO) woman.texi | |
249 | woman.dvi: woman.texi | |
250 | $(ENVADD) $(TEXI2DVI) $(srcdir)/woman.texi | |
251 | ||
252 | $(infodir)/speedbar: speedbar.texi | |
253 | $(MAKEINFO) speedbar.texi | |
254 | speedbar.dvi: speedbar.texi | |
255 | $(ENVADD) $(TEXI2DVI) $(srcdir)/speedbar.texi | |
256 | ||
257 | $(infodir)/tramp: tramp.texi | |
258 | $(MAKEINFO) tramp.texi | |
259 | tramp.dvi: tramp.texi | |
260 | $(ENVADD) $(TEXI2DVI) $(srcdir)/tramp.texi | |
261 | ||
262 | $(infodir)/ses: ses.texi | |
263 | $(MAKEINFO) ses.texi | |
264 | ses.dvi: ses.texi | |
265 | $(ENVADD) $(TEXI2DVI) $(srcdir)/ses.texi | |
266 | ||
267 | $(infodir)/smtpmail: smtpmail.texi | |
268 | $(MAKEINFO) smtpmail.texi | |
269 | smtpmail.dvi: smtpmail.texi | |
270 | $(ENVADD) $(TEXI2DVI) $(srcdir)/smtpmail.texi | |
271 | ||
4009494e GM |
272 | $(infodir)/org: org.texi |
273 | $(MAKEINFO) org.texi | |
274 | org.dvi: org.texi | |
275 | $(ENVADD) $(TEXI2DVI) $(srcdir)/org.texi | |
276 | ||
277 | $(infodir)/url: url.texi | |
278 | $(MAKEINFO) url.texi | |
279 | url.dvi: url.texi | |
280 | $(ENVADD) $(TEXI2DVI) $(srcdir)/url.texi | |
281 | ||
282 | $(infodir)/newsticker: newsticker.texi | |
283 | $(MAKEINFO) newsticker.texi | |
284 | newsticker.dvi: newsticker.texi | |
285 | $(ENVADD) $(TEXI2DVI) $(srcdir)/newsticker.texi | |
286 | ||
ac97a16b MH |
287 | $(infodir)/nxml-mode: nxml-mode.texi |
288 | $(MAKEINFO) nxml-mode.texi | |
289 | nxml-mod.dvi: nxml-mode.texi | |
290 | $(ENVADD) $(TEXI2DVI) $(srcdir)/nxml-mode.texi | |
291 | ||
4009494e GM |
292 | $(infodir)/rcirc: rcirc.texi |
293 | $(MAKEINFO) rcirc.texi | |
294 | rcirc.dvi: rcirc.texi | |
295 | $(ENVADD) $(TEXI2DVI) $(srcdir)/rcirc.texi | |
296 | ||
297 | $(infodir)/erc: erc.texi | |
298 | $(MAKEINFO) erc.texi | |
299 | erc.dvi: erc.texi | |
300 | $(ENVADD) $(TEXI2DVI) $(srcdir)/erc.texi | |
301 | ||
bca98fc9 JB |
302 | $(infodir)/epa: epa.texi |
303 | $(MAKEINFO) epa.texi | |
304 | epa.dvi: epa.texi | |
305 | $(ENVADD) $(TEXI2DVI) $(srcdir)/epa.texi | |
306 | ||
d1dad0b9 JB |
307 | $(infodir)/mairix-el: mairix-el.texi |
308 | $(MAKEINFO) mairix-el.texi | |
309 | mairix-el.dvi: mairix-el.texi | |
310 | $(ENVADD) $(TEXI2DVI) $(srcdir)/mairix-el.texi | |
311 | ||
35ed8e2e JB |
312 | $(infodir)/auth: auth.texi |
313 | $(MAKEINFO) auth.texi | |
314 | auth.dvi: auth.texi | |
315 | $(ENVADD) $(TEXI2DVI) $(srcdir)/auth.texi | |
316 | ||
4009494e GM |
317 | mostlyclean: |
318 | - $(DEL) *.log *.cp *.fn *.ky *.pg *.vr core *.tp *.core gnustmp.* | |
319 | ||
320 | clean: mostlyclean | |
321 | - $(DEL) *.dvi | |
1682490c JB |
322 | - $(DEL) $(infodir)/ccmode* $(infodir)/cl* \ |
323 | $(infodir)/dbus* $(infodir)/dired-x* \ | |
4009494e GM |
324 | $(infodir)/ediff* $(infodir)/forms* \ |
325 | $(infodir)/gnus* $(infodir)/info* \ | |
326 | $(infodir)/message* $(infodir)/mh-e* \ | |
327 | $(infodir)/reftex* $(infodir)/sc* \ | |
328 | $(infodir)/vip* $(infodir)/widget* \ | |
329 | $(infodir)/efaq* $(infodir)/ada-mode* \ | |
330 | $(infodir)/autotype* $(infodir)/calc* \ | |
331 | $(infodir)/idlwave* $(infodir)/eudc* \ | |
332 | $(infodir)/ebrowse* $(infodir)/pcl-cvs* \ | |
333 | $(infodir)/woman* $(infodir)/eshell* \ | |
334 | $(infodir)/speedbar* $(infodir)/tramp* \ | |
335 | $(infodir)/ses* $(infodir)/smtpmail* \ | |
336 | $(infodir)/url* $(infodir)/org* \ | |
337 | $(infodir)/flymake* $(infodir)/newsticker* \ | |
338 | $(infodir)/sieve* $(infodir)/pgg* \ | |
b6173182 | 339 | $(infodir)/erc* $(infodir)/rcirc* \ |
bca98fc9 | 340 | $(infodir)/remember* $(infodir)/nxml-mode* \ |
4997d802 | 341 | $(infodir)/epa* $(infodir)/sasl* \ |
35ed8e2e | 342 | $(infodir)/mairix-el* $(infodir)/auth* |
4009494e GM |
343 | |
344 | distclean: clean | |
7389398d | 345 | - $(DEL) makefile |
4009494e GM |
346 | |
347 | maintainer-clean: distclean | |
348 | - $(DEL) *.aux *.cps *.fns *.kys *.pgs *.vrs *.toc | |
349 | # Don't delete these, because they are outside the current directory. | |
350 | # for file in $(INFO_TARGETS); do rm -f $${file}*; done | |
351 | ||
352 | ||
353 | # Formerly this directory had texindex.c and getopt.c in it | |
354 | # and this makefile built them to make texindex. | |
355 | # That caused trouble because this is run entirely in the source directory. | |
356 | # Since we expect to get texi2dvi from elsewhere, | |
357 | # it is ok to expect texindex from elsewhere also. |