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 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
50 $(infodir)/emacs-mime \
62 $(infodir)/newsticker \
124 # The following rule does not work with all versions of `make'.
125 .SUFFIXES
: .texi .
dvi
129 ENVADD
= TEXINPUTS
="$(srcdir):$(TEXINPUTS)" MAKEINFO
="$(MAKEINFO) -I$(srcdir)"
132 info: $(infodir) $(INFO_TARGETS
)
140 # Note that all the Info targets build the Info files
141 # in srcdir. There is no provision for Info files
142 # to exist in the build directory.
143 # In a distribution of Emacs, the Info files should be up to date.
145 ## "short" target names for convenience, to just rebuild one manual.
146 ada-mode
: $(infodir)/ada-mode
147 $(infodir)/ada-mode
: ada-mode.texi
148 cd
$(srcdir); $(MAKEINFO
) ada-mode.texi
149 ada-mode.
dvi: ada-mode.texi
150 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ada-mode.texi
152 autotype
: $(infodir)/autotype
153 $(infodir)/autotype
: autotype.texi
154 cd
$(srcdir); $(MAKEINFO
) autotype.texi
155 autotype.
dvi: autotype.texi
156 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/autotype.texi
158 calc
: $(infodir)/calc
159 $(infodir)/calc
: calc.texi
160 cd
$(srcdir); $(MAKEINFO
) calc.texi
162 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/calc.texi
164 ccmode
: $(infodir)/ccmode
165 $(infodir)/ccmode
: cc-mode.texi
166 cd
$(srcdir); $(MAKEINFO
) cc-mode.texi
167 cc-mode.
dvi: cc-mode.texi
168 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/cc-mode.texi
171 $(infodir)/cl
: cl.texi
172 cd
$(srcdir); $(MAKEINFO
) cl.texi
174 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/cl.texi
176 dired-x
: $(infodir)/dired-x
177 $(infodir)/dired-x
: dired-x.texi
178 cd
$(srcdir); $(MAKEINFO
) dired-x.texi
179 dired-x.
dvi: dired-x.texi
180 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/dired-x.texi
182 ebrowse
: $(infodir)/ebrowse
183 $(infodir)/ebrowse
: ebrowse.texi
184 cd
$(srcdir); $(MAKEINFO
) ebrowse.texi
185 ebrowse.
dvi: ebrowse.texi
186 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ebrowse.texi
188 ediff
: $(infodir)/ediff
189 $(infodir)/ediff
: ediff.texi
190 cd
$(srcdir); $(MAKEINFO
) ediff.texi
191 ediff.
dvi: ediff.texi
192 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ediff.texi
194 emacs-mime
: $(infodir)/emacs-mime
195 $(infodir)/emacs-mime
: emacs-mime.texi
196 cd
$(srcdir); $(MAKEINFO
) --enable-encoding emacs-mime.texi
197 emacs-mime.
dvi: emacs-mime.texi
198 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/emacs-mime.texi
201 $(infodir)/erc
: erc.texi
202 cd
$(srcdir); $(MAKEINFO
) erc.texi
204 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/erc.texi
206 eshell
: $(infodir)/eshell
207 $(infodir)/eshell
: eshell.texi
208 cd
$(srcdir); $(MAKEINFO
) eshell.texi
209 eshell.
dvi: eshell.texi
210 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/eshell.texi
212 eudc
: $(infodir)/eudc
213 $(infodir)/eudc
: eudc.texi
214 cd
$(srcdir); $(MAKEINFO
) eudc.texi
216 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/eudc.texi
218 efaq
: $(infodir)/efaq
219 $(infodir)/efaq
: faq.texi
220 cd
$(srcdir); $(MAKEINFO
) faq.texi
222 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/faq.texi
224 flymake
: $(infodir)/flymake
225 $(infodir)/flymake
: flymake.texi
226 cd
$(srcdir); $(MAKEINFO
) flymake.texi
227 flymake.
dvi: flymake.texi
228 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/flymake.texi
230 forms
: $(infodir)/forms
231 $(infodir)/forms
: forms.texi
232 cd
$(srcdir); $(MAKEINFO
) forms.texi
233 forms.
dvi: forms.texi
234 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/forms.texi
236 # gnus/message/emacs-mime/sieve/pgg are part of Gnus:
237 gnus
: $(infodir)/gnus
238 $(infodir)/gnus
: gnus.texi gnus-faq.texi
239 cd
$(srcdir); $(MAKEINFO
) gnus.texi
240 gnus.
dvi: gnus.texi gnus-faq.texi
241 sed
-e
'/@iflatex/,/@end iflatex/d' ${srcdir}/gnus.texi
> gnustmp.texi
242 $(ENVADD
) $(TEXI2DVI
) gnustmp.texi
243 cp gnustmp.
dvi $*.
dvi
246 # This is produced with --no-split to avoid making files whose
247 # names clash on DOS 8+3 filesystems
248 idlwave
: $(infodir)/idlwave
249 $(infodir)/idlwave
: idlwave.texi
250 cd
$(srcdir); $(MAKEINFO
) --no-split idlwave.texi
251 idlwave.
dvi: idlwave.texi
252 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/idlwave.texi
254 # The following target uses an explicit -o switch to work around
255 # the @setfilename directive in info.texi, which is required for
256 # the Texinfo distribution.
257 ###info : $(infodir)/info # circular!
258 $(infodir)/info: info.texi
259 cd
$(srcdir); $(MAKEINFO
) --no-split
info.texi
-o
$@
261 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/info.texi
263 message
: $(infodir)/message
264 $(infodir)/message
: message.texi
265 cd
$(srcdir); $(MAKEINFO
) message.texi
266 message.
dvi: message.texi
267 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/message.texi
269 mh-e
: $(infodir)/mh-e
270 $(infodir)/mh-e
: mh-e.texi
271 cd
$(srcdir); $(MAKEINFO
) mh-e.texi
273 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/mh-e.texi
275 newsticker
: $(infodir)/newsticker
276 $(infodir)/newsticker
: newsticker.texi
277 cd
$(srcdir); $(MAKEINFO
) newsticker.texi
278 newsticker.
dvi: newsticker.texi
279 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/newsticker.texi
282 $(infodir)/org
: org.texi
283 cd
$(srcdir); $(MAKEINFO
) org.texi
285 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/org.texi
287 pcl-cvs
: $(infodir)/pcl-cvs
288 $(infodir)/pcl-cvs
: pcl-cvs.texi
289 cd
$(srcdir); $(MAKEINFO
) pcl-cvs.texi
290 pcl-cvs.
dvi: pcl-cvs.texi
291 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/pcl-cvs.texi
294 $(infodir)/pgg
: pgg.texi
295 cd
$(srcdir); $(MAKEINFO
) pgg.texi
297 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/pgg.texi
299 rcirc
: $(infodir)/rcirc
300 $(infodir)/rcirc
: rcirc.texi
301 cd
$(srcdir); $(MAKEINFO
) rcirc.texi
302 rcirc.
dvi: rcirc.texi
303 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/rcirc.texi
305 reftex
: $(infodir)/reftex
306 $(infodir)/reftex
: reftex.texi
307 cd
$(srcdir); $(MAKEINFO
) reftex.texi
308 reftex.
dvi: reftex.texi
309 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/reftex.texi
311 remember
: $(infodir)/remember
312 $(infodir)/remember
: remember.texi
313 cd
$(srcdir); $(MAKEINFO
) remember.texi
314 remember.
dvi: remember.texi
315 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/remember.texi
318 $(infodir)/sc
: sc.texi
319 cd
$(srcdir); $(MAKEINFO
) sc.texi
321 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/sc.texi
324 $(infodir)/ses
: ses.texi
325 cd
$(srcdir); $(MAKEINFO
) ses.texi
327 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ses.texi
329 sieve
: $(infodir)/sieve
330 $(infodir)/sieve
: sieve.texi
331 cd
$(srcdir); $(MAKEINFO
) sieve.texi
332 sieve.
dvi: sieve.texi
333 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/sieve.texi
335 smtpmail
: $(infodir)/smtpmail
336 $(infodir)/smtpmail
: smtpmail.texi
337 cd
$(srcdir); $(MAKEINFO
) smtpmail.texi
338 smtpmail.
dvi: smtpmail.texi
339 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/smtpmail.texi
341 speedbar
: $(infodir)/speedbar
342 $(infodir)/speedbar
: speedbar.texi
343 cd
$(srcdir); $(MAKEINFO
) speedbar.texi
344 speedbar.
dvi: speedbar.texi
345 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/speedbar.texi
347 tramp
: $(infodir)/tramp
348 $(infodir)/tramp
: tramp.texi trampver.texi
349 cd
$(srcdir); $(MAKEINFO
) -D emacs tramp.texi
350 tramp.
dvi: tramp.texi trampver.texi
351 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/tramp.texi
354 $(infodir)/url
: url.texi
355 cd
$(srcdir); $(MAKEINFO
) url.texi
357 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/url.texi
360 $(infodir)/vip
: vip.texi
361 cd
$(srcdir); $(MAKEINFO
) vip.texi
363 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/vip.texi
365 viper
: $(infodir)/viper
366 $(infodir)/viper
: viper.texi
367 cd
$(srcdir); $(MAKEINFO
) viper.texi
368 viper.
dvi: viper.texi
369 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/viper.texi
371 widget
: $(infodir)/widget
372 $(infodir)/widget
: widget.texi
373 cd
$(srcdir); $(MAKEINFO
) widget.texi
374 widget.
dvi: widget.texi
375 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/widget.texi
377 woman
: $(infodir)/woman
378 $(infodir)/woman
: woman.texi
379 cd
$(srcdir); $(MAKEINFO
) woman.texi
380 woman.
dvi: woman.texi
381 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/woman.texi
385 rm -f
*.log
*.cp
*.fn
*.ky
*.op
*.ops
*.pg
*.vr core
*.tp \
386 *.tps
*.core gnustmp.
*
387 rm -f
*.aux
*.cps
*.fns
*.kys
*.pgs
*.vrs
*.toc
395 maintainer-clean
: distclean
396 for file in
$(INFO_TARGETS
); do
rm -f
$${file}*; done
399 ### Makefile ends here