1 #### -*- Makefile -*- for documentation other than the Emacs manual.
3 # Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
4 # Free Software Foundation, Inc.
6 # This file is part of GNU Emacs.
8 # GNU Emacs is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
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.
18 # You should have received a copy of the GNU General Public License
19 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
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.
28 infodir = $(srcdir)/../../info
30 # The makeinfo program is part of the Texinfo distribution.
31 MAKEINFO = makeinfo --force
32 MULTI_INSTALL_INFO = $(srcdir)\..\..\nt\multi-install-info.bat
33 INFO_TARGETS = $(infodir)/ccmode \
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 \
46 $(infodir)/erc $(infodir)/remember $(infodir)/nxml-mode \
47 $(infodir)/epa $(infodir)/mairix-el $(infodir)/sasl \
48 $(infodir)/auth $(infodir)/eieio $(infodir)/ede \
49 $(infodir)/semantic $(infodir)/edt
50 DVI_TARGETS = calc.dvi cc-mode.dvi cl.dvi dbus.dvi dired-x.dvi \
51 ediff.dvi forms.dvi gnus.dvi message.dvi emacs-mime.dvi \
52 sieve.dvi pgg.dvi mh-e.dvi \
53 reftex.dvi sc.dvi vip.dvi viper.dvi widget.dvi faq.dvi \
54 ada-mode.dvi autotype.dvi idlwave.dvi eudc.dvi ebrowse.dvi \
55 pcl-cvs.dvi woman.dvi eshell.dvi org.dvi url.dvi \
56 speedbar.dvi tramp.dvi ses.dvi smtpmail.dvi flymake.dvi \
57 newsticker.dvi rcirc.dvi erc.dvi remember.dvi nxml-mode.dvi \
58 epa.dvi mairix-el.dvi sasl.dvi auth.dvi eieio.dvi ede.dvi \
60 INFOSOURCES = info.texi
62 # The following rule does not work with all versions of `make'.
68 ENVADD = $(srcdir)\..\..\nt\envadd.bat "TEXINPUTS=$(srcdir);$(TEXINPUTS)" \
69 "MAKEINFO=$(MAKEINFO) -I$(srcdir)" /C
76 # Note that all the Info targets build the Info files
77 # in srcdir. There is no provision for Info files
78 # to exist in the build directory.
79 # In a distribution of Emacs, the Info files should be up to date.
82 $(MULTI_INSTALL_INFO) --info-dir=$(infodir) $(INFO_TARGETS)
84 # The following target uses an explicit -o switch to work around
85 # the @setfilename directive in info.texi, which is required for
86 # the Texinfo distribution.
87 # Some Windows ports of makeinfo seem to require -o to come before the
88 # texi filename, contrary to GNU standards.
90 $(infodir)/info: $(INFOSOURCES)
91 $(MAKEINFO) --no-split -o $@ info.texi
93 info.dvi: $(INFOSOURCES)
94 $(ENVADD) $(TEXI2DVI) $(srcdir)/info.texi
97 $(infodir)/ccmode: cc-mode.texi
98 $(MAKEINFO) cc-mode.texi
99 cc-mode.dvi: cc-mode.texi
100 $(ENVADD) $(TEXI2DVI) $(srcdir)/cc-mode.texi
102 $(infodir)/ada-mode: ada-mode.texi
103 $(MAKEINFO) ada-mode.texi
104 ada-mode.dvi: ada-mode.texi
105 $(ENVADD) $(TEXI2DVI) $(srcdir)/ada-mode.texi
107 $(infodir)/pcl-cvs: pcl-cvs.texi
108 $(MAKEINFO) pcl-cvs.texi
109 pcl-cvs.dvi: pcl-cvs.texi
110 $(ENVADD) $(TEXI2DVI) $(srcdir)/pcl-cvs.texi
112 $(infodir)/eshell: eshell.texi
113 $(MAKEINFO) eshell.texi
114 eshell.dvi: eshell.texi
115 $(ENVADD) $(TEXI2DVI) $(srcdir)/eshell.texi
117 $(infodir)/cl: cl.texi
120 $(ENVADD) $(TEXI2DVI) $(srcdir)/cl.texi
122 $(infodir)/dbus: dbus.texi
123 $(MAKEINFO) dbus.texi
125 $(ENVADD) $(TEXI2DVI) $(srcdir)/dbus.texi
127 $(infodir)/dired-x: dired-x.texi
128 $(MAKEINFO) dired-x.texi
129 dired-x.dvi: dired-x.texi
130 $(ENVADD) $(TEXI2DVI) $(srcdir)/dired-x.texi
132 $(infodir)/ediff: ediff.texi
133 $(MAKEINFO) ediff.texi
134 ediff.dvi: ediff.texi
135 $(ENVADD) $(TEXI2DVI) $(srcdir)/ediff.texi
137 $(infodir)/flymake: flymake.texi
138 $(MAKEINFO) flymake.texi
139 flymake.dvi: flymake.texi
140 $(ENVADD) $(TEXI2DVI) $(srcdir)/flymake.texi
142 $(infodir)/forms: forms.texi
143 $(MAKEINFO) forms.texi
144 forms.dvi: forms.texi
145 $(ENVADD) $(TEXI2DVI) $(srcdir)/forms.texi
147 # gnus/message/emacs-mime/sieve/pgg are part of Gnus:
148 $(infodir)/gnus: gnus.texi
149 $(MAKEINFO) gnus.texi
151 sed -e "/@iflatex/,/@end iflatex/d" $(srcdir)/gnus.texi > gnustmp.texi
152 $(ENVADD) $(TEXI2DVI) gnustmp.texi
153 cp gnustmp.dvi $*.dvi
156 $(infodir)/message: message.texi
157 $(MAKEINFO) message.texi
158 message.dvi: message.texi
159 $(ENVADD) $(TEXI2DVI) $(srcdir)/message.texi
161 $(infodir)/emacs-mime: emacs-mime.texi
162 $(MAKEINFO) --enable-encoding emacs-mime.texi
163 emacs-mime.dvi: emacs-mime.texi
164 $(ENVADD) $(TEXI2DVI) $(srcdir)/emacs-mime.texi
166 $(infodir)/sieve: sieve.texi
167 $(MAKEINFO) sieve.texi
168 sieve.dvi: sieve.texi
169 $(ENVADD) $(TEXI2DVI) $(srcdir)/sieve.texi
171 $(infodir)/pgg: pgg.texi
174 $(ENVADD) $(TEXI2DVI) $(srcdir)/pgg.texi
176 $(infodir)/mh-e: mh-e.texi
177 $(MAKEINFO) mh-e.texi
179 $(ENVADD) $(TEXI2DVI) $(srcdir)/mh-e.texi
181 $(infodir)/reftex: reftex.texi
182 $(MAKEINFO) reftex.texi
183 reftex.dvi: reftex.texi
184 $(ENVADD) $(TEXI2DVI) $(srcdir)/reftex.texi
186 $(infodir)/remember: remember.texi
187 $(MAKEINFO) remember.texi
188 remember.dvi: remember.texi
189 $(ENVADD) $(TEXI2DVI) $(srcdir)/remember.texi
191 $(infodir)/sasl: sasl.texi
192 $(MAKEINFO) sasl.texi
194 $(ENVADD) $(TEXI2DVI) $(srcdir)/sasl.texi
196 $(infodir)/sc: sc.texi
199 $(ENVADD) $(TEXI2DVI) $(srcdir)/sc.texi
201 $(infodir)/vip: vip.texi
204 $(ENVADD) $(TEXI2DVI) $(srcdir)/vip.texi
206 $(infodir)/viper: viper.texi
207 $(MAKEINFO) viper.texi
208 viper.dvi: viper.texi
209 $(ENVADD) $(TEXI2DVI) $(srcdir)/viper.texi
211 $(infodir)/widget: widget.texi
212 $(MAKEINFO) widget.texi
213 widget.dvi: widget.texi
214 $(ENVADD) $(TEXI2DVI) $(srcdir)/widget.texi
216 $(infodir)/efaq: faq.texi
219 $(ENVADD) $(TEXI2DVI) $(srcdir)/faq.texi
221 $(infodir)/autotype: autotype.texi
222 $(MAKEINFO) autotype.texi
223 autotype.dvi: autotype.texi
224 $(ENVADD) $(TEXI2DVI) $(srcdir)/autotype.texi
226 $(infodir)/calc: calc.texi
227 $(MAKEINFO) calc.texi
230 $(ENVADD) $(TEXI2DVI) $(srcdir)/calc.texi
232 # This is produced with --no-split to avoid making files whose
233 # names clash on DOS 8+3 filesystems
234 $(infodir)/idlwave: idlwave.texi
235 $(MAKEINFO) --no-split idlwave.texi
236 idlwave.dvi: idlwave.texi
237 $(ENVADD) $(TEXI2DVI) $(srcdir)/idlwave.texi
239 $(infodir)/eudc: eudc.texi
240 $(MAKEINFO) eudc.texi
242 $(ENVADD) $(TEXI2DVI) $(srcdir)/eudc.texi
244 $(infodir)/ebrowse: ebrowse.texi
245 $(MAKEINFO) ebrowse.texi
246 ebrowse.dvi: ebrowse.texi
247 $(ENVADD) $(TEXI2DVI) $(srcdir)/ebrowse.texi
249 $(infodir)/woman: woman.texi
250 $(MAKEINFO) woman.texi
251 woman.dvi: woman.texi
252 $(ENVADD) $(TEXI2DVI) $(srcdir)/woman.texi
254 $(infodir)/speedbar: speedbar.texi
255 $(MAKEINFO) speedbar.texi
256 speedbar.dvi: speedbar.texi
257 $(ENVADD) $(TEXI2DVI) $(srcdir)/speedbar.texi
259 $(infodir)/tramp: tramp.texi
260 $(MAKEINFO) tramp.texi
261 tramp.dvi: tramp.texi
262 $(ENVADD) $(TEXI2DVI) $(srcdir)/tramp.texi
264 $(infodir)/ses: ses.texi
267 $(ENVADD) $(TEXI2DVI) $(srcdir)/ses.texi
269 $(infodir)/smtpmail: smtpmail.texi
270 $(MAKEINFO) smtpmail.texi
271 smtpmail.dvi: smtpmail.texi
272 $(ENVADD) $(TEXI2DVI) $(srcdir)/smtpmail.texi
274 $(infodir)/org: org.texi
277 $(ENVADD) $(TEXI2DVI) $(srcdir)/org.texi
279 $(infodir)/url: url.texi
282 $(ENVADD) $(TEXI2DVI) $(srcdir)/url.texi
284 $(infodir)/newsticker: newsticker.texi
285 $(MAKEINFO) newsticker.texi
286 newsticker.dvi: newsticker.texi
287 $(ENVADD) $(TEXI2DVI) $(srcdir)/newsticker.texi
289 $(infodir)/nxml-mode: nxml-mode.texi
290 $(MAKEINFO) nxml-mode.texi
291 nxml-mod.dvi: nxml-mode.texi
292 $(ENVADD) $(TEXI2DVI) $(srcdir)/nxml-mode.texi
294 $(infodir)/rcirc: rcirc.texi
295 $(MAKEINFO) rcirc.texi
296 rcirc.dvi: rcirc.texi
297 $(ENVADD) $(TEXI2DVI) $(srcdir)/rcirc.texi
299 $(infodir)/erc: erc.texi
302 $(ENVADD) $(TEXI2DVI) $(srcdir)/erc.texi
304 $(infodir)/epa: epa.texi
307 $(ENVADD) $(TEXI2DVI) $(srcdir)/epa.texi
309 $(infodir)/mairix-el: mairix-el.texi
310 $(MAKEINFO) mairix-el.texi
311 mairix-el.dvi: mairix-el.texi
312 $(ENVADD) $(TEXI2DVI) $(srcdir)/mairix-el.texi
314 $(infodir)/auth: auth.texi
315 $(MAKEINFO) auth.texi
317 $(ENVADD) $(TEXI2DVI) $(srcdir)/auth.texi
319 $(infodir)/eieio: eieio.texi
320 $(MAKEINFO) eieio.texi
321 eieio.dvi: eieio.texi
322 $(ENVADD) $(TEXI2DVI) $(srcdir)/eieio.texi
324 $(infodir)/ede: ede.texi
327 $(ENVADD) $(TEXI2DVI) $(srcdir)/ede.texi
329 $(infodir)/semantic: semantic.texi
330 $(MAKEINFO) semantic.texi
331 semantic.dvi: semantic.texi
332 $(ENVADD) $(TEXI2DVI) $(srcdir)/semantic.texi
334 $(infodir)/edt: edt.texi
337 $(ENVADD) $(TEXI2DVI) $(srcdir)/edt.texi
340 - $(DEL) *.log *.cp *.fn *.ky *.pg *.vr core *.tp *.core gnustmp.*
344 - $(DEL) $(infodir)/ccmode* $(infodir)/cl* \
345 $(infodir)/dbus* $(infodir)/dired-x* \
346 $(infodir)/ediff* $(infodir)/forms* \
347 $(infodir)/gnus* $(infodir)/info* \
348 $(infodir)/message* $(infodir)/mh-e* \
349 $(infodir)/reftex* $(infodir)/sc* \
350 $(infodir)/vip* $(infodir)/widget* \
351 $(infodir)/efaq* $(infodir)/ada-mode* \
352 $(infodir)/autotype* $(infodir)/calc* \
353 $(infodir)/idlwave* $(infodir)/eudc* \
354 $(infodir)/ebrowse* $(infodir)/pcl-cvs* \
355 $(infodir)/woman* $(infodir)/eshell* \
356 $(infodir)/speedbar* $(infodir)/tramp* \
357 $(infodir)/ses* $(infodir)/smtpmail* \
358 $(infodir)/url* $(infodir)/org* \
359 $(infodir)/flymake* $(infodir)/newsticker* \
360 $(infodir)/sieve* $(infodir)/pgg* \
361 $(infodir)/erc* $(infodir)/rcirc* \
362 $(infodir)/remember* $(infodir)/nxml-mode* \
363 $(infodir)/epa* $(infodir)/sasl* \
364 $(infodir)/mairix-el* $(infodir)/auth* \
365 $(infodir)/eieio* $(infodir)/ede* \
366 $(infodir)/semantic* $(infodir)edt*
371 maintainer-clean: distclean
372 - $(DEL) *.aux *.cps *.fns *.kys *.pgs *.vrs *.toc
373 # Don't delete these, because they are outside the current directory.
374 # for file in $(INFO_TARGETS); do rm -f $${file}*; done
377 # Formerly this directory had texindex.c and getopt.c in it
378 # and this makefile built them to make texindex.
379 # That caused trouble because this is run entirely in the source directory.
380 # Since we expect to get texi2dvi from elsewhere,
381 # it is ok to expect texindex from elsewhere also.