1 #### Makefile for the Emacs Manual and other documentation.
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 2, 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.
23 # Where to find the source code. $(srcdir) will be the man
24 # subdirectory of the source tree. This is
25 # set by the configure script's `--srcdir' option.
27 top_srcdir
=@top_srcdir@
29 # Tell make where to find source files; this is needed for the makefiles.
33 # The makeinfo program is part of the Texinfo distribution.
34 # Use --force so that it generates output even if there are errors.
35 MAKEINFO
= makeinfo --force
36 INFO_TARGETS
= ..
/info/emacs ..
/info/ccmode ..
/info/cl \
37 ..
/info/dired-x ..
/info/ediff ..
/info/forms ..
/info/gnus \
38 ..
/info/message ..
/info/sieve ..
/info/pgg ..
/info/emacs-mime \
39 ..
/info/info ..
/info/mh-e ..
/info/reftex \
40 ..
/info/sc ..
/info/vip ..
/info/viper ..
/info/widget \
41 ..
/info/efaq ..
/info/ada-mode ..
/info/autotype ..
/info/calc \
42 ..
/info/idlwave ..
/info/eudc ..
/info/ebrowse ..
/info/pcl-cvs \
43 ..
/info/woman ..
/info/eshell ..
/info/org ..
/info/url \
44 ..
/info/speedbar ..
/info/tramp ..
/info/ses ..
/info/smtpmail \
45 ..
/info/flymake ..
/info/newsticker ..
/info/rcirc ..
/info/erc
46 DVI_TARGETS
= emacs.
dvi calc.
dvi cc-mode.
dvi cl.
dvi dired-x.
dvi \
47 ediff.
dvi forms.
dvi gnus.
dvi message.
dvi emacs-mime.
dvi \
48 gnus.
dvi message.
dvi sieve.
dvi pgg.
dvi mh-e.
dvi \
49 reftex.
dvi sc.
dvi vip.
dvi viper.
dvi widget.
dvi faq.
dvi \
50 ada-mode.
dvi autotype.
dvi idlwave.
dvi eudc.
dvi ebrowse.
dvi \
51 pcl-cvs.
dvi woman.
dvi eshell.
dvi org.
dvi url.
dvi \
52 speedbar.
dvi tramp.
dvi ses.
dvi smtpmail.
dvi flymake.
dvi \
53 newsticker.
dvi emacs-xtra.
dvi rcirc.
dvi erc.
dvi
54 INFOSOURCES
= info.texi
56 # The following rule does not work with all versions of `make'.
62 ENVADD
= TEXINPUTS
="$(srcdir):$(TEXINPUTS)" MAKEINFO
="$(MAKEINFO) -I$(srcdir)"
65 $(srcdir)/arevert-xtra.texi \
66 $(srcdir)/cal-xtra.texi \
67 $(srcdir)/dired-xtra.texi \
68 $(srcdir)/picture-xtra.texi \
69 $(srcdir)/emerge-xtra.texi \
70 $(srcdir)/vc-xtra.texi \
71 $(srcdir)/vc1-xtra.texi \
72 $(srcdir)/vc2-xtra.texi \
73 $(srcdir)/fortran-xtra.texi \
74 $(srcdir)/msdog-xtra.texi
77 ${srcdir}/emacs.texi \
78 ${srcdir}/doclicense.texi \
79 ${srcdir}/screen.texi \
80 ${srcdir}/commands.texi \
81 ${srcdir}/entering.texi \
82 ${srcdir}/basic.texi \
87 ${srcdir}/killing.texi \
89 ${srcdir}/display.texi \
90 ${srcdir}/search.texi \
91 ${srcdir}/fixit.texi \
92 ${srcdir}/files.texi \
93 ${srcdir}/buffers.texi \
94 ${srcdir}/windows.texi \
95 ${srcdir}/frames.texi \
97 ${srcdir}/major.texi \
98 ${srcdir}/indent.texi \
100 ${srcdir}/programs.texi \
101 ${srcdir}/building.texi \
102 ${srcdir}/maintaining.texi \
103 ${srcdir}/abbrevs.texi \
104 ${srcdir}/sending.texi \
105 ${srcdir}/rmail.texi \
106 ${srcdir}/dired.texi \
107 ${srcdir}/calendar.texi \
108 ${srcdir}/misc.texi \
109 ${srcdir}/custom.texi \
110 ${srcdir}/trouble.texi \
111 ${srcdir}/cmdargs.texi \
112 ${srcdir}/xresources.texi \
113 ${srcdir}/anti.texi \
114 ${srcdir}/macos.texi \
115 ${srcdir}/msdog.texi \
117 ${srcdir}/glossary.texi \
119 ${srcdir}/kmacro.texi \
122 info: $(top_srcdir
)/info $(INFO_TARGETS
)
129 # Note that all the Info targets build the Info files
130 # in srcdir. There is no provision for Info files
131 # to exist in the build directory.
132 # In a distribution of Emacs, the Info files should be up to date.
134 # The following target uses an explicit -o switch to work around
135 # the @setfilename directive in info.texi, which is required for
136 # the Texinfo distribution.
138 ..
/info/info: ${INFOSOURCES}
139 cd
$(srcdir); $(MAKEINFO
) --no-split
info.texi
-o
$@
141 info.
dvi: ${INFOSOURCES}
142 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/info.texi
144 ..
/info/emacs
: ${EMACSSOURCES}
145 cd
$(srcdir); $(MAKEINFO
) emacs.texi
147 emacs.
dvi: ${EMACSSOURCES}
148 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/emacs.texi
150 # This target is here so you could easily get the list of the *.texi
151 # files which belong to the Emacs manual (as opposed to the separate
152 # manuals for CL, CC Mode, Ebrowse, etc.). With this target, you can
153 # say things like "grep foo `make emacsman`".
155 @echo
$(EMACSSOURCES
)
157 ..
/info/ccmode
: cc-mode.texi
158 cd
$(srcdir); $(MAKEINFO
) cc-mode.texi
159 cc-mode.
dvi: cc-mode.texi
160 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/cc-mode.texi
162 ..
/info/ada-mode
: ada-mode.texi
163 cd
$(srcdir); $(MAKEINFO
) ada-mode.texi
164 ada-mode.
dvi: ada-mode.texi
165 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ada-mode.texi
167 ..
/info/pcl-cvs
: pcl-cvs.texi
168 cd
$(srcdir); $(MAKEINFO
) pcl-cvs.texi
169 pcl-cvs.
dvi: pcl-cvs.texi
170 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/pcl-cvs.texi
172 ..
/info/eshell
: eshell.texi
173 cd
$(srcdir); $(MAKEINFO
) eshell.texi
174 eshell.
dvi: eshell.texi
175 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/eshell.texi
178 cd
$(srcdir); $(MAKEINFO
) cl.texi
180 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/cl.texi
182 ..
/info/dired-x
: dired-x.texi
183 cd
$(srcdir); $(MAKEINFO
) dired-x.texi
184 dired-x.
dvi: dired-x.texi
185 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/dired-x.texi
187 ..
/info/ediff
: ediff.texi
188 cd
$(srcdir); $(MAKEINFO
) ediff.texi
189 ediff.
dvi: ediff.texi
190 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ediff.texi
192 emacs-xtra.
dvi: emacs-xtra.texi
$(EMACS_XTRA
)
193 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/emacs-xtra.texi
195 ..
/info/forms
: forms.texi
196 cd
$(srcdir); $(MAKEINFO
) forms.texi
197 forms.
dvi: forms.texi
198 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/forms.texi
200 # gnus/message/emacs-mime/sieve/pgg are part of Gnus:
201 ..
/info/gnus
: gnus.texi gnus-faq.texi
202 cd
$(srcdir); $(MAKEINFO
) gnus.texi
203 gnus.
dvi: gnus.texi gnus-faq.texi
204 sed
-e
'/@iflatex/,/@end iflatex/d' ${srcdir}/gnus.texi
> gnustmp.texi
205 $(ENVADD
) $(TEXI2DVI
) gnustmp.texi
206 cp gnustmp.
dvi $*.
dvi
209 ..
/info/message
: message.texi
210 cd
$(srcdir); $(MAKEINFO
) message.texi
211 message.
dvi: message.texi
212 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/message.texi
214 ..
/info/sieve
: sieve.texi
215 cd
$(srcdir); $(MAKEINFO
) sieve.texi
216 sieve.
dvi: sieve.texi
217 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/sieve.texi
219 ..
/info/emacs-mime
: emacs-mime.texi
220 cd
$(srcdir); $(MAKEINFO
) --enable-encoding emacs-mime.texi
221 emacs-mime.
dvi: emacs-mime.texi
222 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/emacs-mime.texi
224 ..
/info/pgg
: pgg.texi
225 cd
$(srcdir); $(MAKEINFO
) pgg.texi
227 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/pgg.texi
229 ..
/info/mh-e
: mh-e.texi
230 cd
$(srcdir); $(MAKEINFO
) mh-e.texi
232 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/mh-e.texi
234 ..
/info/reftex
: reftex.texi
235 cd
$(srcdir); $(MAKEINFO
) reftex.texi
236 reftex.
dvi: reftex.texi
237 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/reftex.texi
240 cd
$(srcdir); $(MAKEINFO
) sc.texi
242 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/sc.texi
244 ..
/info/vip
: vip.texi
245 cd
$(srcdir); $(MAKEINFO
) vip.texi
247 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/vip.texi
249 ..
/info/viper
: viper.texi
250 cd
$(srcdir); $(MAKEINFO
) viper.texi
251 viper.
dvi: viper.texi
252 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/viper.texi
254 ..
/info/widget
: widget.texi
255 cd
$(srcdir); $(MAKEINFO
) widget.texi
256 widget.
dvi: widget.texi
257 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/widget.texi
259 ..
/info/efaq
: faq.texi
260 cd
$(srcdir); $(MAKEINFO
) faq.texi
262 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/faq.texi
264 ..
/etc
/GNU
: gnu1.texi gnu.texi
265 cd
$(srcdir) && makeinfo --no-headers
-o ..
/etc
/GNU gnu1.texi
267 ..
/info/autotype
: autotype.texi
268 cd
$(srcdir); $(MAKEINFO
) autotype.texi
269 autotype.
dvi: autotype.texi
270 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/autotype.texi
272 ..
/info/calc
: calc.texi
273 cd
$(srcdir); $(MAKEINFO
) calc.texi
276 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/calc.texi
278 # This is produced with --no-split to avoid making files whose
279 # names clash on DOS 8+3 filesystems
280 ..
/info/idlwave
: idlwave.texi
281 cd
$(srcdir); $(MAKEINFO
) --no-split idlwave.texi
282 idlwave.
dvi: idlwave.texi
283 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/idlwave.texi
285 ..
/info/eudc
: eudc.texi
286 cd
$(srcdir); $(MAKEINFO
) eudc.texi
288 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/eudc.texi
290 ..
/info/ebrowse
: ebrowse.texi
291 cd
$(srcdir); $(MAKEINFO
) ebrowse.texi
292 ebrowse.
dvi: ebrowse.texi
293 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ebrowse.texi
295 ..
/info/woman
: woman.texi
296 cd
$(srcdir); $(MAKEINFO
) woman.texi
297 woman.
dvi: woman.texi
298 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/woman.texi
300 ..
/info/org
: org.texi
301 cd
$(srcdir); $(MAKEINFO
) org.texi
303 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/org.texi
305 ..
/info/url
: url.texi
306 cd
$(srcdir); $(MAKEINFO
) url.texi
308 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/url.texi
310 ..
/info/speedbar
: speedbar.texi
311 cd
$(srcdir); $(MAKEINFO
) speedbar.texi
312 speedbar.
dvi: speedbar.texi
313 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/speedbar.texi
315 ..
/info/tramp
: tramp.texi trampver.texi
316 cd
$(srcdir); $(MAKEINFO
) -D emacs tramp.texi
317 tramp.
dvi: tramp.texi trampver.texi
318 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/tramp.texi
320 ..
/info/ses
: ses.texi
321 cd
$(srcdir); $(MAKEINFO
) ses.texi
323 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ses.texi
325 ..
/info/smtpmail
: smtpmail.texi
326 cd
$(srcdir); $(MAKEINFO
) smtpmail.texi
327 smtpmail.
dvi: smtpmail.texi
328 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/smtpmail.texi
330 ..
/info/flymake
: flymake.texi
331 cd
$(srcdir); $(MAKEINFO
) flymake.texi
332 flymake.
dvi: flymake.texi
333 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/flymake.texi
335 ..
/info/newsticker
: newsticker.texi
336 cd
$(srcdir); $(MAKEINFO
) newsticker.texi
337 newsticker.
dvi: newsticker.texi
338 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/newsticker.texi
340 ..
/info/rcirc
: rcirc.texi
341 cd
$(srcdir); $(MAKEINFO
) rcirc.texi
342 rcirc.
dvi: rcirc.texi
343 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/rcirc.texi
345 ..
/info/erc
: erc.texi
346 cd
$(srcdir); $(MAKEINFO
) erc.texi
348 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/erc.texi
351 rm -f
*.log
*.cp
*.fn
*.ky
*.pg
*.vr core
*.tp
*.core gnustmp.
*
358 maintainer-clean
: distclean
359 rm -f
*.aux
*.cps
*.fns
*.kys
*.pgs
*.vrs
*.toc
360 for file in
$(INFO_TARGETS
); do
rm -f
$${file}*; done
363 # Formerly this directory had texindex.c and getopt.c in it
364 # and this makefile built them to make texindex.
365 # That caused trouble because this is run entirely in the source directory.
366 # Since we expect to get texi2dvi from elsewhere,
367 # it is ok to expect texindex from elsewhere also.