1 #### Makefile for documentation other than the Emacs manual.
3 # Copyright (C) 1994, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
4 # 2004, 2005, 2006, 2007, 2008 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, or (at your option)
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; see the file COPYING. If not, write to
20 # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 # Boston, MA 02110-1301, USA.
24 # Where to find the source code. $(srcdir) will be the man-aux
25 # subdirectory of the source tree. This is
26 # set by the configure script's `--srcdir' option.
28 top_srcdir
=@top_srcdir@
30 # Tell make where to find source files; this is needed for the makefiles.
33 ## Where the output files go.
34 ## Note that the setfilename command in the .texi files assumes this.
37 # The makeinfo program is part of the Texinfo distribution.
38 # Use --force so that it generates output even if there are errors.
39 MAKEINFO
= makeinfo --force
51 $(infodir)/emacs-mime \
64 $(infodir)/newsticker \
65 $(infodir)/nxml-mode \
130 # The following rule does not work with all versions of `make'.
131 .SUFFIXES
: .texi .
dvi
135 ENVADD
= TEXINPUTS
="$(srcdir):$(TEXINPUTS)" MAKEINFO
="$(MAKEINFO) -I$(srcdir)"
138 info: $(infodir) $(INFO_TARGETS
)
146 # Note that all the Info targets build the Info files
147 # in srcdir. There is no provision for Info files
148 # to exist in the build directory.
149 # In a distribution of Emacs, the Info files should be up to date.
151 ## "short" target names for convenience, to just rebuild one manual.
152 ada-mode
: $(infodir)/ada-mode
153 $(infodir)/ada-mode
: ada-mode.texi
154 cd
$(srcdir); $(MAKEINFO
) ada-mode.texi
155 ada-mode.
dvi: ada-mode.texi
156 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ada-mode.texi
158 autotype
: $(infodir)/autotype
159 $(infodir)/autotype
: autotype.texi
160 cd
$(srcdir); $(MAKEINFO
) autotype.texi
161 autotype.
dvi: autotype.texi
162 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/autotype.texi
164 calc
: $(infodir)/calc
165 $(infodir)/calc
: calc.texi
166 cd
$(srcdir); $(MAKEINFO
) calc.texi
168 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/calc.texi
170 ccmode
: $(infodir)/ccmode
171 $(infodir)/ccmode
: cc-mode.texi
172 cd
$(srcdir); $(MAKEINFO
) cc-mode.texi
173 cc-mode.
dvi: cc-mode.texi
174 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/cc-mode.texi
177 $(infodir)/cl
: cl.texi
178 cd
$(srcdir); $(MAKEINFO
) cl.texi
180 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/cl.texi
182 dbus
: $(infodir)/dbus
183 $(infodir)/dbus
: dbus.texi
184 cd
$(srcdir); $(MAKEINFO
) dbus.texi
186 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/dbus.texi
188 dired-x
: $(infodir)/dired-x
189 $(infodir)/dired-x
: dired-x.texi
190 cd
$(srcdir); $(MAKEINFO
) dired-x.texi
191 dired-x.
dvi: dired-x.texi
192 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/dired-x.texi
194 ebrowse
: $(infodir)/ebrowse
195 $(infodir)/ebrowse
: ebrowse.texi
196 cd
$(srcdir); $(MAKEINFO
) ebrowse.texi
197 ebrowse.
dvi: ebrowse.texi
198 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ebrowse.texi
200 ediff
: $(infodir)/ediff
201 $(infodir)/ediff
: ediff.texi
202 cd
$(srcdir); $(MAKEINFO
) ediff.texi
203 ediff.
dvi: ediff.texi
204 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ediff.texi
206 emacs-mime
: $(infodir)/emacs-mime
207 $(infodir)/emacs-mime
: emacs-mime.texi
208 cd
$(srcdir); $(MAKEINFO
) --enable-encoding emacs-mime.texi
209 emacs-mime.
dvi: emacs-mime.texi
210 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/emacs-mime.texi
213 $(infodir)/epa
: epa.texi
214 cd
$(srcdir); $(MAKEINFO
) epa.texi
216 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/epa.texi
219 $(infodir)/erc
: erc.texi
220 cd
$(srcdir); $(MAKEINFO
) erc.texi
222 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/erc.texi
224 eshell
: $(infodir)/eshell
225 $(infodir)/eshell
: eshell.texi
226 cd
$(srcdir); $(MAKEINFO
) eshell.texi
227 eshell.
dvi: eshell.texi
228 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/eshell.texi
230 eudc
: $(infodir)/eudc
231 $(infodir)/eudc
: eudc.texi
232 cd
$(srcdir); $(MAKEINFO
) eudc.texi
234 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/eudc.texi
236 efaq
: $(infodir)/efaq
237 $(infodir)/efaq
: faq.texi
238 cd
$(srcdir); $(MAKEINFO
) faq.texi
240 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/faq.texi
242 flymake
: $(infodir)/flymake
243 $(infodir)/flymake
: flymake.texi
244 cd
$(srcdir); $(MAKEINFO
) flymake.texi
245 flymake.
dvi: flymake.texi
246 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/flymake.texi
248 forms
: $(infodir)/forms
249 $(infodir)/forms
: forms.texi
250 cd
$(srcdir); $(MAKEINFO
) forms.texi
251 forms.
dvi: forms.texi
252 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/forms.texi
254 # gnus/message/emacs-mime/sieve/pgg are part of Gnus:
255 gnus
: $(infodir)/gnus
256 $(infodir)/gnus
: gnus.texi gnus-faq.texi
257 cd
$(srcdir); $(MAKEINFO
) gnus.texi
258 gnus.
dvi: gnus.texi gnus-faq.texi
259 sed
-e
'/@iflatex/,/@end iflatex/d' ${srcdir}/gnus.texi
> gnustmp.texi
260 $(ENVADD
) $(TEXI2DVI
) gnustmp.texi
261 cp gnustmp.
dvi $*.
dvi
264 # This is produced with --no-split to avoid making files whose
265 # names clash on DOS 8+3 filesystems
266 idlwave
: $(infodir)/idlwave
267 $(infodir)/idlwave
: idlwave.texi
268 cd
$(srcdir); $(MAKEINFO
) --no-split idlwave.texi
269 idlwave.
dvi: idlwave.texi
270 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/idlwave.texi
272 # The following target uses an explicit -o switch to work around
273 # the @setfilename directive in info.texi, which is required for
274 # the Texinfo distribution.
275 ###info : $(infodir)/info # circular!
276 $(infodir)/info: info.texi
277 cd
$(srcdir); $(MAKEINFO
) --no-split
info.texi
-o
$@
279 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/info.texi
281 message
: $(infodir)/message
282 $(infodir)/message
: message.texi
283 cd
$(srcdir); $(MAKEINFO
) message.texi
284 message.
dvi: message.texi
285 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/message.texi
287 mh-e
: $(infodir)/mh-e
288 $(infodir)/mh-e
: mh-e.texi
289 cd
$(srcdir); $(MAKEINFO
) mh-e.texi
291 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/mh-e.texi
293 newsticker
: $(infodir)/newsticker
294 $(infodir)/newsticker
: newsticker.texi
295 cd
$(srcdir); $(MAKEINFO
) newsticker.texi
296 newsticker.
dvi: newsticker.texi
297 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/newsticker.texi
299 nxml-mode
: $(infodir)/nxml-mode
300 $(infodir)/nxml-mode
: nxml-mode.texi
301 cd
$(srcdir); $(MAKEINFO
) nxml-mode.texi
302 nxml-mode.
dvi: nxml-mode.texi
303 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/nxml-mode.texi
306 $(infodir)/org
: org.texi
307 cd
$(srcdir); $(MAKEINFO
) org.texi
309 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/org.texi
311 pcl-cvs
: $(infodir)/pcl-cvs
312 $(infodir)/pcl-cvs
: pcl-cvs.texi
313 cd
$(srcdir); $(MAKEINFO
) pcl-cvs.texi
314 pcl-cvs.
dvi: pcl-cvs.texi
315 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/pcl-cvs.texi
318 $(infodir)/pgg
: pgg.texi
319 cd
$(srcdir); $(MAKEINFO
) pgg.texi
321 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/pgg.texi
323 rcirc
: $(infodir)/rcirc
324 $(infodir)/rcirc
: rcirc.texi
325 cd
$(srcdir); $(MAKEINFO
) rcirc.texi
326 rcirc.
dvi: rcirc.texi
327 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/rcirc.texi
329 reftex
: $(infodir)/reftex
330 $(infodir)/reftex
: reftex.texi
331 cd
$(srcdir); $(MAKEINFO
) reftex.texi
332 reftex.
dvi: reftex.texi
333 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/reftex.texi
335 remember
: $(infodir)/remember
336 $(infodir)/remember
: remember.texi
337 cd
$(srcdir); $(MAKEINFO
) remember.texi
338 remember.
dvi: remember.texi
339 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/remember.texi
342 $(infodir)/sc
: sc.texi
343 cd
$(srcdir); $(MAKEINFO
) sc.texi
345 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/sc.texi
348 $(infodir)/ses
: ses.texi
349 cd
$(srcdir); $(MAKEINFO
) ses.texi
351 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ses.texi
353 sieve
: $(infodir)/sieve
354 $(infodir)/sieve
: sieve.texi
355 cd
$(srcdir); $(MAKEINFO
) sieve.texi
356 sieve.
dvi: sieve.texi
357 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/sieve.texi
359 smtpmail
: $(infodir)/smtpmail
360 $(infodir)/smtpmail
: smtpmail.texi
361 cd
$(srcdir); $(MAKEINFO
) smtpmail.texi
362 smtpmail.
dvi: smtpmail.texi
363 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/smtpmail.texi
365 speedbar
: $(infodir)/speedbar
366 $(infodir)/speedbar
: speedbar.texi
367 cd
$(srcdir); $(MAKEINFO
) speedbar.texi
368 speedbar.
dvi: speedbar.texi
369 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/speedbar.texi
371 tramp
: $(infodir)/tramp
372 $(infodir)/tramp
: tramp.texi trampver.texi
373 cd
$(srcdir); $(MAKEINFO
) -D emacs tramp.texi
374 tramp.
dvi: tramp.texi trampver.texi
375 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/tramp.texi
378 $(infodir)/url
: url.texi
379 cd
$(srcdir); $(MAKEINFO
) url.texi
381 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/url.texi
384 $(infodir)/vip
: vip.texi
385 cd
$(srcdir); $(MAKEINFO
) vip.texi
387 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/vip.texi
389 viper
: $(infodir)/viper
390 $(infodir)/viper
: viper.texi
391 cd
$(srcdir); $(MAKEINFO
) viper.texi
392 viper.
dvi: viper.texi
393 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/viper.texi
395 widget
: $(infodir)/widget
396 $(infodir)/widget
: widget.texi
397 cd
$(srcdir); $(MAKEINFO
) widget.texi
398 widget.
dvi: widget.texi
399 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/widget.texi
401 woman
: $(infodir)/woman
402 $(infodir)/woman
: woman.texi
403 cd
$(srcdir); $(MAKEINFO
) woman.texi
404 woman.
dvi: woman.texi
405 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/woman.texi
409 rm -f
*.log
*.cp
*.fn
*.ky
*.op
*.ops
*.pg
*.vr core
*.tp \
410 *.tps
*.core gnustmp.
*
411 rm -f
*.aux
*.cps
*.fns
*.kys
*.pgs
*.vrs
*.toc
419 maintainer-clean
: distclean
420 for file in
$(INFO_TARGETS
); do
rm -f
$${file}*; done
423 ### Makefile ends here