1 #### -*- Makefile -*- for documentation other than the Emacs manual.
3 # Copyright (C) 2003-2011 Free Software Foundation, Inc.
5 # This file is part of GNU Emacs.
7 # GNU Emacs is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
12 # GNU Emacs is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21 # Where to find the source code. The source code for Emacs's C kernel is
22 # expected to be in $(srcdir)/src, and the source code for Emacs's
23 # utility programs is expected to be in $(srcdir)/lib-src. This is
24 # set by the configure script's `--srcdir' option.
27 infodir = $(srcdir)/../../info
29 ## Directory with emacsver.texi.
30 ## Currently only used by efaq; could be added to MAKEINFO.
31 emacsdir = $(srcdir)/../emacs
33 # The makeinfo program is part of the Texinfo distribution.
35 MAKEINFO_OPTS = --force -I$(emacsdir)
36 MULTI_INSTALL_INFO = $(srcdir)\..\..\nt\multi-install-info.bat
37 INFO_TARGETS = $(infodir)/ccmode \
38 $(infodir)/cl $(infodir)/dbus $(infodir)/dired-x \
39 $(infodir)/ediff $(infodir)/forms $(infodir)/gnus \
40 $(infodir)/message $(infodir)/sieve $(infodir)/pgg \
41 $(infodir)/emacs-mime $(infodir)/info $(infodir)/mh-e \
42 $(infodir)/reftex $(infodir)/sc $(infodir)/vip \
43 $(infodir)/viper $(infodir)/widget $(infodir)/efaq \
44 $(infodir)/ada-mode $(infodir)/autotype $(infodir)/calc \
45 $(infodir)/idlwave $(infodir)/eudc $(infodir)/ebrowse \
46 $(infodir)/pcl-cvs $(infodir)/woman $(infodir)/eshell \
47 $(infodir)/org $(infodir)/url $(infodir)/speedbar \
48 $(infodir)/tramp $(infodir)/ses $(infodir)/smtpmail \
49 $(infodir)/flymake $(infodir)/newsticker $(infodir)/rcirc \
50 $(infodir)/erc $(infodir)/ert \
51 $(infodir)/remember $(infodir)/nxml-mode \
52 $(infodir)/epa $(infodir)/mairix-el $(infodir)/sasl \
53 $(infodir)/auth $(infodir)/eieio $(infodir)/ede \
54 $(infodir)/semantic $(infodir)/edt
55 DVI_TARGETS = calc.dvi cc-mode.dvi cl.dvi dbus.dvi dired-x.dvi \
56 ediff.dvi forms.dvi gnus.dvi message.dvi emacs-mime.dvi \
57 sieve.dvi pgg.dvi mh-e.dvi \
58 reftex.dvi sc.dvi vip.dvi viper.dvi widget.dvi faq.dvi \
59 ada-mode.dvi autotype.dvi idlwave.dvi eudc.dvi ebrowse.dvi \
60 pcl-cvs.dvi woman.dvi eshell.dvi org.dvi url.dvi \
61 speedbar.dvi tramp.dvi ses.dvi smtpmail.dvi flymake.dvi \
62 newsticker.dvi rcirc.dvi erc.dvi ert.dvi \
63 remember.dvi nxml-mode.dvi \
64 epa.dvi mairix-el.dvi sasl.dvi auth.dvi eieio.dvi ede.dvi \
66 INFOSOURCES = info.texi
68 # The following rule does not work with all versions of `make'.
74 ENVADD = $(srcdir)\..\..\nt\envadd.bat "TEXINPUTS=$(srcdir);$(TEXINPUTS)" \
75 "MAKEINFO=$(MAKEINFO) $(MAKEINFO_OPTS)" /C
82 # Note that all the Info targets build the Info files
83 # in srcdir. There is no provision for Info files
84 # to exist in the build directory.
85 # In a distribution of Emacs, the Info files should be up to date.
88 $(MULTI_INSTALL_INFO) --info-dir=$(infodir) $(INFO_TARGETS)
90 # The following target uses an explicit -o switch to work around
91 # the @setfilename directive in info.texi, which is required for
92 # the Texinfo distribution.
93 # Some Windows ports of makeinfo seem to require -o to come before the
94 # texi filename, contrary to GNU standards.
96 $(infodir)/info: $(INFOSOURCES)
97 $(MAKEINFO) $(MAKEINFO_OPTS) --no-split -o $@ info.texi
99 info.dvi: $(INFOSOURCES)
100 $(ENVADD) $(TEXI2DVI) $(srcdir)/info.texi
103 $(infodir)/ccmode: cc-mode.texi
104 $(MAKEINFO) $(MAKEINFO_OPTS) cc-mode.texi
105 cc-mode.dvi: cc-mode.texi
106 $(ENVADD) $(TEXI2DVI) $(srcdir)/cc-mode.texi
108 $(infodir)/ada-mode: ada-mode.texi
109 $(MAKEINFO) $(MAKEINFO_OPTS) ada-mode.texi
110 ada-mode.dvi: ada-mode.texi
111 $(ENVADD) $(TEXI2DVI) $(srcdir)/ada-mode.texi
113 $(infodir)/pcl-cvs: pcl-cvs.texi
114 $(MAKEINFO) $(MAKEINFO_OPTS) pcl-cvs.texi
115 pcl-cvs.dvi: pcl-cvs.texi
116 $(ENVADD) $(TEXI2DVI) $(srcdir)/pcl-cvs.texi
118 $(infodir)/eshell: eshell.texi
119 $(MAKEINFO) $(MAKEINFO_OPTS) eshell.texi
120 eshell.dvi: eshell.texi
121 $(ENVADD) $(TEXI2DVI) $(srcdir)/eshell.texi
123 $(infodir)/cl: cl.texi
124 $(MAKEINFO) $(MAKEINFO_OPTS) cl.texi
126 $(ENVADD) $(TEXI2DVI) $(srcdir)/cl.texi
128 $(infodir)/dbus: dbus.texi
129 $(MAKEINFO) $(MAKEINFO_OPTS) dbus.texi
131 $(ENVADD) $(TEXI2DVI) $(srcdir)/dbus.texi
133 $(infodir)/dired-x: dired-x.texi
134 $(MAKEINFO) $(MAKEINFO_OPTS) dired-x.texi
135 dired-x.dvi: dired-x.texi
136 $(ENVADD) $(TEXI2DVI) $(srcdir)/dired-x.texi
138 $(infodir)/ediff: ediff.texi
139 $(MAKEINFO) $(MAKEINFO_OPTS) ediff.texi
140 ediff.dvi: ediff.texi
141 $(ENVADD) $(TEXI2DVI) $(srcdir)/ediff.texi
143 $(infodir)/flymake: flymake.texi
144 $(MAKEINFO) $(MAKEINFO_OPTS) flymake.texi
145 flymake.dvi: flymake.texi
146 $(ENVADD) $(TEXI2DVI) $(srcdir)/flymake.texi
148 $(infodir)/forms: forms.texi
149 $(MAKEINFO) $(MAKEINFO_OPTS) forms.texi
150 forms.dvi: forms.texi
151 $(ENVADD) $(TEXI2DVI) $(srcdir)/forms.texi
153 # gnus/message/emacs-mime/sieve/pgg are part of Gnus:
154 $(infodir)/gnus: gnus.texi
155 $(MAKEINFO) $(MAKEINFO_OPTS) gnus.texi
157 sed -e "/@iflatex/,/@end iflatex/d" $(srcdir)/gnus.texi > gnustmp.texi
158 $(ENVADD) $(TEXI2DVI) gnustmp.texi
159 cp gnustmp.dvi $*.dvi
162 $(infodir)/message: message.texi
163 $(MAKEINFO) $(MAKEINFO_OPTS) message.texi
164 message.dvi: message.texi
165 $(ENVADD) $(TEXI2DVI) $(srcdir)/message.texi
167 $(infodir)/emacs-mime: emacs-mime.texi
168 $(MAKEINFO) $(MAKEINFO_OPTS) --enable-encoding emacs-mime.texi
169 emacs-mime.dvi: emacs-mime.texi
170 $(ENVADD) $(TEXI2DVI) $(srcdir)/emacs-mime.texi
172 $(infodir)/sieve: sieve.texi
173 $(MAKEINFO) $(MAKEINFO_OPTS) sieve.texi
174 sieve.dvi: sieve.texi
175 $(ENVADD) $(TEXI2DVI) $(srcdir)/sieve.texi
177 $(infodir)/pgg: pgg.texi
178 $(MAKEINFO) $(MAKEINFO_OPTS) pgg.texi
180 $(ENVADD) $(TEXI2DVI) $(srcdir)/pgg.texi
182 $(infodir)/mh-e: mh-e.texi
183 $(MAKEINFO) $(MAKEINFO_OPTS) mh-e.texi
185 $(ENVADD) $(TEXI2DVI) $(srcdir)/mh-e.texi
187 $(infodir)/reftex: reftex.texi
188 $(MAKEINFO) $(MAKEINFO_OPTS) reftex.texi
189 reftex.dvi: reftex.texi
190 $(ENVADD) $(TEXI2DVI) $(srcdir)/reftex.texi
192 $(infodir)/remember: remember.texi
193 $(MAKEINFO) $(MAKEINFO_OPTS) remember.texi
194 remember.dvi: remember.texi
195 $(ENVADD) $(TEXI2DVI) $(srcdir)/remember.texi
197 $(infodir)/sasl: sasl.texi
198 $(MAKEINFO) $(MAKEINFO_OPTS) sasl.texi
200 $(ENVADD) $(TEXI2DVI) $(srcdir)/sasl.texi
202 $(infodir)/sc: sc.texi
203 $(MAKEINFO) $(MAKEINFO_OPTS) sc.texi
205 $(ENVADD) $(TEXI2DVI) $(srcdir)/sc.texi
207 $(infodir)/vip: vip.texi
208 $(MAKEINFO) $(MAKEINFO_OPTS) vip.texi
210 $(ENVADD) $(TEXI2DVI) $(srcdir)/vip.texi
212 $(infodir)/viper: viper.texi
213 $(MAKEINFO) $(MAKEINFO_OPTS) viper.texi
214 viper.dvi: viper.texi
215 $(ENVADD) $(TEXI2DVI) $(srcdir)/viper.texi
217 $(infodir)/widget: widget.texi
218 $(MAKEINFO) $(MAKEINFO_OPTS) widget.texi
219 widget.dvi: widget.texi
220 $(ENVADD) $(TEXI2DVI) $(srcdir)/widget.texi
222 $(infodir)/efaq: faq.texi $(emacsdir)/emacsver.texi
223 $(MAKEINFO) $(MAKEINFO_OPTS) faq.texi
224 faq.dvi: faq.texi $(emacsdir)/emacsver.texi
225 $(ENVADD) $(TEXI2DVI) $(srcdir)/faq.texi
227 $(infodir)/autotype: autotype.texi
228 $(MAKEINFO) $(MAKEINFO_OPTS) autotype.texi
229 autotype.dvi: autotype.texi
230 $(ENVADD) $(TEXI2DVI) $(srcdir)/autotype.texi
232 $(infodir)/calc: calc.texi $(emacsdir)/emacsver.texi
233 $(MAKEINFO) $(MAKEINFO_OPTS) calc.texi
235 calc.dvi: calc.texi $(emacsdir)/emacsver.texi
236 $(ENVADD) $(TEXI2DVI) $(srcdir)/calc.texi
238 # This is produced with --no-split to avoid making files whose
239 # names clash on DOS 8+3 filesystems
240 $(infodir)/idlwave: idlwave.texi
241 $(MAKEINFO) $(MAKEINFO_OPTS) --no-split idlwave.texi
242 idlwave.dvi: idlwave.texi
243 $(ENVADD) $(TEXI2DVI) $(srcdir)/idlwave.texi
245 $(infodir)/eudc: eudc.texi
246 $(MAKEINFO) $(MAKEINFO_OPTS) eudc.texi
248 $(ENVADD) $(TEXI2DVI) $(srcdir)/eudc.texi
250 $(infodir)/ebrowse: ebrowse.texi
251 $(MAKEINFO) $(MAKEINFO_OPTS) ebrowse.texi
252 ebrowse.dvi: ebrowse.texi
253 $(ENVADD) $(TEXI2DVI) $(srcdir)/ebrowse.texi
255 $(infodir)/woman: woman.texi
256 $(MAKEINFO) $(MAKEINFO_OPTS) woman.texi
257 woman.dvi: woman.texi
258 $(ENVADD) $(TEXI2DVI) $(srcdir)/woman.texi
260 $(infodir)/speedbar: speedbar.texi
261 $(MAKEINFO) $(MAKEINFO_OPTS) speedbar.texi
262 speedbar.dvi: speedbar.texi
263 $(ENVADD) $(TEXI2DVI) $(srcdir)/speedbar.texi
265 $(infodir)/tramp: tramp.texi
266 $(MAKEINFO) $(MAKEINFO_OPTS) tramp.texi
267 tramp.dvi: tramp.texi
268 $(ENVADD) $(TEXI2DVI) $(srcdir)/tramp.texi
270 $(infodir)/ses: ses.texi
271 $(MAKEINFO) $(MAKEINFO_OPTS) ses.texi
273 $(ENVADD) $(TEXI2DVI) $(srcdir)/ses.texi
275 $(infodir)/smtpmail: smtpmail.texi
276 $(MAKEINFO) $(MAKEINFO_OPTS) smtpmail.texi
277 smtpmail.dvi: smtpmail.texi
278 $(ENVADD) $(TEXI2DVI) $(srcdir)/smtpmail.texi
280 $(infodir)/org: org.texi
281 $(MAKEINFO) $(MAKEINFO_OPTS) org.texi
283 $(ENVADD) $(TEXI2DVI) $(srcdir)/org.texi
285 $(infodir)/url: url.texi
286 $(MAKEINFO) $(MAKEINFO_OPTS) url.texi
288 $(ENVADD) $(TEXI2DVI) $(srcdir)/url.texi
290 $(infodir)/newsticker: newsticker.texi
291 $(MAKEINFO) $(MAKEINFO_OPTS) newsticker.texi
292 newsticker.dvi: newsticker.texi
293 $(ENVADD) $(TEXI2DVI) $(srcdir)/newsticker.texi
295 $(infodir)/nxml-mode: nxml-mode.texi
296 $(MAKEINFO) $(MAKEINFO_OPTS) nxml-mode.texi
297 nxml-mod.dvi: nxml-mode.texi
298 $(ENVADD) $(TEXI2DVI) $(srcdir)/nxml-mode.texi
300 $(infodir)/rcirc: rcirc.texi
301 $(MAKEINFO) $(MAKEINFO_OPTS) rcirc.texi
302 rcirc.dvi: rcirc.texi
303 $(ENVADD) $(TEXI2DVI) $(srcdir)/rcirc.texi
305 $(infodir)/erc: erc.texi
306 $(MAKEINFO) $(MAKEINFO_OPTS) erc.texi
308 $(ENVADD) $(TEXI2DVI) $(srcdir)/erc.texi
310 $(infodir)/ert: ert.texi
311 $(MAKEINFO) $(MAKEINFO_OPTS) ert.texi
313 $(ENVADD) $(TEXI2DVI) $(srcdir)/ert.texi
315 $(infodir)/epa: epa.texi
316 $(MAKEINFO) $(MAKEINFO_OPTS) epa.texi
318 $(ENVADD) $(TEXI2DVI) $(srcdir)/epa.texi
320 $(infodir)/mairix-el: mairix-el.texi
321 $(MAKEINFO) $(MAKEINFO_OPTS) mairix-el.texi
322 mairix-el.dvi: mairix-el.texi
323 $(ENVADD) $(TEXI2DVI) $(srcdir)/mairix-el.texi
325 $(infodir)/auth: auth.texi
326 $(MAKEINFO) $(MAKEINFO_OPTS) auth.texi
328 $(ENVADD) $(TEXI2DVI) $(srcdir)/auth.texi
330 $(infodir)/eieio: eieio.texi
331 $(MAKEINFO) $(MAKEINFO_OPTS) eieio.texi
332 eieio.dvi: eieio.texi
333 $(ENVADD) $(TEXI2DVI) $(srcdir)/eieio.texi
335 $(infodir)/ede: ede.texi
336 $(MAKEINFO) $(MAKEINFO_OPTS) ede.texi
338 $(ENVADD) $(TEXI2DVI) $(srcdir)/ede.texi
340 $(infodir)/semantic: semantic.texi
341 $(MAKEINFO) $(MAKEINFO_OPTS) semantic.texi
342 semantic.dvi: semantic.texi
343 $(ENVADD) $(TEXI2DVI) $(srcdir)/semantic.texi
345 $(infodir)/edt: edt.texi
346 $(MAKEINFO) $(MAKEINFO_OPTS) edt.texi
348 $(ENVADD) $(TEXI2DVI) $(srcdir)/edt.texi
351 - $(DEL) *.log *.cp *.fn *.ky *.pg *.vr core *.tp *.core gnustmp.*
355 - $(DEL) $(infodir)/ccmode* $(infodir)/cl* \
356 $(infodir)/dbus* $(infodir)/dired-x* \
357 $(infodir)/ediff* $(infodir)/forms* \
358 $(infodir)/gnus* $(infodir)/info* \
359 $(infodir)/message* $(infodir)/mh-e* \
360 $(infodir)/reftex* $(infodir)/sc* \
361 $(infodir)/vip* $(infodir)/widget* \
362 $(infodir)/efaq* $(infodir)/ada-mode* \
363 $(infodir)/autotype* $(infodir)/calc* \
364 $(infodir)/idlwave* $(infodir)/eudc* \
365 $(infodir)/ebrowse* $(infodir)/pcl-cvs* \
366 $(infodir)/woman* $(infodir)/eshell* \
367 $(infodir)/speedbar* $(infodir)/tramp* \
368 $(infodir)/ses* $(infodir)/smtpmail* \
369 $(infodir)/url* $(infodir)/org* \
370 $(infodir)/flymake* $(infodir)/newsticker* \
371 $(infodir)/sieve* $(infodir)/pgg* \
372 $(infodir)/erc* $(infodir)/ert* $(infodir)/rcirc* \
373 $(infodir)/remember* $(infodir)/nxml-mode* \
374 $(infodir)/epa* $(infodir)/sasl* \
375 $(infodir)/mairix-el* $(infodir)/auth* \
376 $(infodir)/eieio* $(infodir)/ede* \
377 $(infodir)/semantic* $(infodir)edt*
382 maintainer-clean: distclean
383 - $(DEL) *.aux *.cps *.fns *.kys *.pgs *.vrs *.toc
384 # Don't delete these, because they are outside the current directory.
385 # for file in $(INFO_TARGETS); do rm -f $${file}*; done
388 # Formerly this directory had texindex.c and getopt.c in it
389 # and this makefile built them to make texindex.
390 # That caused trouble because this is run entirely in the source directory.
391 # Since we expect to get texi2dvi from elsewhere,
392 # it is ok to expect texindex from elsewhere also.