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 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. $(srcdir) will be the man-aux
23 # subdirectory of the source tree. This is
24 # set by the configure script's `--srcdir' option.
26 top_srcdir
=@top_srcdir@
28 # Tell make where to find source files; this is needed for the makefiles.
31 ## Where the output files go.
32 ## Note that the setfilename command in the .texi files assumes this.
35 # The makeinfo program is part of the Texinfo distribution.
36 # Use --force so that it generates output even if there are errors.
37 MAKEINFO
= makeinfo --force
49 $(infodir)/emacs-mime \
60 $(infodir)/mairix-el \
63 $(infodir)/newsticker \
64 $(infodir)/nxml-mode \
132 # The following rule does not work with all versions of `make'.
133 .SUFFIXES
: .texi .
dvi
137 ENVADD
= TEXINPUTS
="$(srcdir):$(TEXINPUTS)" MAKEINFO
="$(MAKEINFO) -I$(srcdir)"
140 info: $(infodir) $(INFO_TARGETS
)
148 # Note that all the Info targets build the Info files
149 # in srcdir. There is no provision for Info files
150 # to exist in the build directory.
151 # In a distribution of Emacs, the Info files should be up to date.
153 ## "short" target names for convenience, to just rebuild one manual.
154 ada-mode
: $(infodir)/ada-mode
155 $(infodir)/ada-mode
: ada-mode.texi
156 cd
$(srcdir); $(MAKEINFO
) ada-mode.texi
157 ada-mode.
dvi: ada-mode.texi
158 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ada-mode.texi
160 autotype
: $(infodir)/autotype
161 $(infodir)/autotype
: autotype.texi
162 cd
$(srcdir); $(MAKEINFO
) autotype.texi
163 autotype.
dvi: autotype.texi
164 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/autotype.texi
166 calc
: $(infodir)/calc
167 $(infodir)/calc
: calc.texi
168 cd
$(srcdir); $(MAKEINFO
) calc.texi
170 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/calc.texi
172 ccmode
: $(infodir)/ccmode
173 $(infodir)/ccmode
: cc-mode.texi
174 cd
$(srcdir); $(MAKEINFO
) cc-mode.texi
175 cc-mode.
dvi: cc-mode.texi
176 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/cc-mode.texi
179 $(infodir)/cl
: cl.texi
180 cd
$(srcdir); $(MAKEINFO
) cl.texi
182 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/cl.texi
184 dbus
: $(infodir)/dbus
185 $(infodir)/dbus
: dbus.texi
186 cd
$(srcdir); $(MAKEINFO
) dbus.texi
188 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/dbus.texi
190 dired-x
: $(infodir)/dired-x
191 $(infodir)/dired-x
: dired-x.texi
192 cd
$(srcdir); $(MAKEINFO
) dired-x.texi
193 dired-x.
dvi: dired-x.texi
194 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/dired-x.texi
196 ebrowse
: $(infodir)/ebrowse
197 $(infodir)/ebrowse
: ebrowse.texi
198 cd
$(srcdir); $(MAKEINFO
) ebrowse.texi
199 ebrowse.
dvi: ebrowse.texi
200 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ebrowse.texi
202 ediff
: $(infodir)/ediff
203 $(infodir)/ediff
: ediff.texi
204 cd
$(srcdir); $(MAKEINFO
) ediff.texi
205 ediff.
dvi: ediff.texi
206 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ediff.texi
208 emacs-mime
: $(infodir)/emacs-mime
209 $(infodir)/emacs-mime
: emacs-mime.texi
210 cd
$(srcdir); $(MAKEINFO
) --enable-encoding emacs-mime.texi
211 emacs-mime.
dvi: emacs-mime.texi
212 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/emacs-mime.texi
215 $(infodir)/epa
: epa.texi
216 cd
$(srcdir); $(MAKEINFO
) epa.texi
218 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/epa.texi
221 $(infodir)/erc
: erc.texi
222 cd
$(srcdir); $(MAKEINFO
) erc.texi
224 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/erc.texi
226 eshell
: $(infodir)/eshell
227 $(infodir)/eshell
: eshell.texi
228 cd
$(srcdir); $(MAKEINFO
) eshell.texi
229 eshell.
dvi: eshell.texi
230 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/eshell.texi
232 eudc
: $(infodir)/eudc
233 $(infodir)/eudc
: eudc.texi
234 cd
$(srcdir); $(MAKEINFO
) eudc.texi
236 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/eudc.texi
238 efaq
: $(infodir)/efaq
239 $(infodir)/efaq
: faq.texi
240 cd
$(srcdir); $(MAKEINFO
) faq.texi
242 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/faq.texi
244 flymake
: $(infodir)/flymake
245 $(infodir)/flymake
: flymake.texi
246 cd
$(srcdir); $(MAKEINFO
) flymake.texi
247 flymake.
dvi: flymake.texi
248 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/flymake.texi
250 forms
: $(infodir)/forms
251 $(infodir)/forms
: forms.texi
252 cd
$(srcdir); $(MAKEINFO
) forms.texi
253 forms.
dvi: forms.texi
254 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/forms.texi
256 # gnus/message/emacs-mime/sieve/pgg are part of Gnus:
257 gnus
: $(infodir)/gnus
258 $(infodir)/gnus
: gnus.texi gnus-faq.texi
259 cd
$(srcdir); $(MAKEINFO
) gnus.texi
260 gnus.
dvi: gnus.texi gnus-faq.texi
261 sed
-e
'/@iflatex/,/@end iflatex/d' ${srcdir}/gnus.texi
> gnustmp.texi
262 $(ENVADD
) $(TEXI2DVI
) gnustmp.texi
263 cp gnustmp.
dvi $*.
dvi
266 # This is produced with --no-split to avoid making files whose
267 # names clash on DOS 8+3 filesystems
268 idlwave
: $(infodir)/idlwave
269 $(infodir)/idlwave
: idlwave.texi
270 cd
$(srcdir); $(MAKEINFO
) --no-split idlwave.texi
271 idlwave.
dvi: idlwave.texi
272 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/idlwave.texi
274 # The following target uses an explicit -o switch to work around
275 # the @setfilename directive in info.texi, which is required for
276 # the Texinfo distribution.
277 ###info : $(infodir)/info # circular!
278 $(infodir)/info: info.texi
279 cd
$(srcdir); $(MAKEINFO
) --no-split
info.texi
-o
$@
281 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/info.texi
283 mairix-el
: $(infodir)/mairix-el
284 $(infodir)/mairix-el
: mairix-el.texi
285 cd
$(srcdir); $(MAKEINFO
) mairix-el.texi
286 mairix-el.
dvi: mairix-el.texi
287 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/mairix-el.texi
289 message
: $(infodir)/message
290 $(infodir)/message
: message.texi
291 cd
$(srcdir); $(MAKEINFO
) message.texi
292 message.
dvi: message.texi
293 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/message.texi
295 mh-e
: $(infodir)/mh-e
296 $(infodir)/mh-e
: mh-e.texi
297 cd
$(srcdir); $(MAKEINFO
) mh-e.texi
299 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/mh-e.texi
301 newsticker
: $(infodir)/newsticker
302 $(infodir)/newsticker
: newsticker.texi
303 cd
$(srcdir); $(MAKEINFO
) newsticker.texi
304 newsticker.
dvi: newsticker.texi
305 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/newsticker.texi
307 nxml-mode
: $(infodir)/nxml-mode
308 $(infodir)/nxml-mode
: nxml-mode.texi
309 cd
$(srcdir); $(MAKEINFO
) nxml-mode.texi
310 nxml-mode.
dvi: nxml-mode.texi
311 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/nxml-mode.texi
314 $(infodir)/org
: org.texi
315 cd
$(srcdir); $(MAKEINFO
) org.texi
317 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/org.texi
319 pcl-cvs
: $(infodir)/pcl-cvs
320 $(infodir)/pcl-cvs
: pcl-cvs.texi
321 cd
$(srcdir); $(MAKEINFO
) pcl-cvs.texi
322 pcl-cvs.
dvi: pcl-cvs.texi
323 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/pcl-cvs.texi
326 $(infodir)/pgg
: pgg.texi
327 cd
$(srcdir); $(MAKEINFO
) pgg.texi
329 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/pgg.texi
331 rcirc
: $(infodir)/rcirc
332 $(infodir)/rcirc
: rcirc.texi
333 cd
$(srcdir); $(MAKEINFO
) rcirc.texi
334 rcirc.
dvi: rcirc.texi
335 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/rcirc.texi
337 reftex
: $(infodir)/reftex
338 $(infodir)/reftex
: reftex.texi
339 cd
$(srcdir); $(MAKEINFO
) reftex.texi
340 reftex.
dvi: reftex.texi
341 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/reftex.texi
343 remember
: $(infodir)/remember
344 $(infodir)/remember
: remember.texi
345 cd
$(srcdir); $(MAKEINFO
) remember.texi
346 remember.
dvi: remember.texi
347 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/remember.texi
349 sasl
: $(infodir)/sasl
350 $(infodir)/sasl
: sasl.texi
351 cd
$(srcdir); $(MAKEINFO
) sasl.texi
353 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/sasl.texi
356 $(infodir)/sc
: sc.texi
357 cd
$(srcdir); $(MAKEINFO
) sc.texi
359 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/sc.texi
362 $(infodir)/ses
: ses.texi
363 cd
$(srcdir); $(MAKEINFO
) ses.texi
365 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ses.texi
367 sieve
: $(infodir)/sieve
368 $(infodir)/sieve
: sieve.texi
369 cd
$(srcdir); $(MAKEINFO
) sieve.texi
370 sieve.
dvi: sieve.texi
371 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/sieve.texi
373 smtpmail
: $(infodir)/smtpmail
374 $(infodir)/smtpmail
: smtpmail.texi
375 cd
$(srcdir); $(MAKEINFO
) smtpmail.texi
376 smtpmail.
dvi: smtpmail.texi
377 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/smtpmail.texi
379 speedbar
: $(infodir)/speedbar
380 $(infodir)/speedbar
: speedbar.texi
381 cd
$(srcdir); $(MAKEINFO
) speedbar.texi
382 speedbar.
dvi: speedbar.texi
383 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/speedbar.texi
385 tramp
: $(infodir)/tramp
386 $(infodir)/tramp
: tramp.texi trampver.texi
387 cd
$(srcdir); $(MAKEINFO
) -D emacs tramp.texi
388 tramp.
dvi: tramp.texi trampver.texi
389 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/tramp.texi
392 $(infodir)/url
: url.texi
393 cd
$(srcdir); $(MAKEINFO
) url.texi
395 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/url.texi
398 $(infodir)/vip
: vip.texi
399 cd
$(srcdir); $(MAKEINFO
) vip.texi
401 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/vip.texi
403 viper
: $(infodir)/viper
404 $(infodir)/viper
: viper.texi
405 cd
$(srcdir); $(MAKEINFO
) viper.texi
406 viper.
dvi: viper.texi
407 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/viper.texi
409 widget
: $(infodir)/widget
410 $(infodir)/widget
: widget.texi
411 cd
$(srcdir); $(MAKEINFO
) widget.texi
412 widget.
dvi: widget.texi
413 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/widget.texi
415 woman
: $(infodir)/woman
416 $(infodir)/woman
: woman.texi
417 cd
$(srcdir); $(MAKEINFO
) woman.texi
418 woman.
dvi: woman.texi
419 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/woman.texi
423 rm -f
*.log
*.cp
*.fn
*.ky
*.op
*.ops
*.pg
*.vr core
*.tp \
424 *.tps
*.core gnustmp.
*
425 rm -f
*.aux
*.cps
*.fns
*.kys
*.pgs
*.vrs
*.toc
433 maintainer-clean
: distclean
434 for file in
$(INFO_TARGETS
); do
rm -f
$${file}*; done
437 ### Makefile ends here