1 #### Makefile for the Emacs Manual and other documentation.
3 # Copyright (C) 1994, 1996, 1997, 1998, 1999, 2000, 2001, 2003
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 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., 59 Temple Place - Suite 330,
21 # Boston, MA 02111-1307, USA.
23 # Where to find the source code. The source code for Emacs's C kernel is
24 # expected to be in ${srcdir}/src, and the source code for Emacs's
25 # utility programs is expected to be in ${srcdir}/lib-src. 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.
34 # The makeinfo program is part of the Texinfo distribution.
36 INFO_TARGETS
= ..
/info/emacs ..
/info/ccmode ..
/info/cl \
37 ..
/info/dired-x ..
/info/ediff ..
/info/forms ..
/info/gnus \
38 ..
/info/info ..
/info/message ..
/info/mh-e ..
/info/reftex \
39 ..
/info/sc ..
/info/vip ..
/info/viper ..
/info/widget \
40 ..
/info/efaq ..
/info/ada-mode ..
/info/autotype ..
/info/calc \
41 ..
/info/idlwave ..
/info/eudc ..
/info/ebrowse ..
/info/pcl-cvs \
42 ..
/info/woman ..
/info/emacs-mime ..
/info/eshell \
43 ..
/info/speedbar ..
/info/tramp ..
/info/ses ..
/info/smtpmail \
45 DVI_TARGETS
= emacs.
dvi calc.
dvi cc-mode.
dvi cl.
dvi dired-x.
dvi \
46 ediff.
dvi forms.
dvi gnus.
dvi message.
dvi mh-e.
dvi \
47 reftex.
dvi sc.
dvi vip.
dvi viper.
dvi widget.
dvi faq.
dvi \
48 ada-mode.
dvi autotype.
dvi idlwave.
dvi eudc.
dvi ebrowse.
dvi \
49 pcl-cvs.
dvi woman.
dvi emacs-mime.
dvi eshell.
dvi \
50 speedbar.
dvi tramp.
dvi ses.
dvi smtpmail.
dvi flymake.
dvi
51 INFOSOURCES
= info.texi
53 # The following rule does not work with all versions of `make'.
59 ENVADD
= TEXINPUTS
="$(srcdir):$(TEXINPUTS)" MAKEINFO
="$(MAKEINFO) -I$(srcdir)"
62 ${srcdir}/emacs.texi \
63 ${srcdir}/doclicense.texi \
64 ${srcdir}/screen.texi \
65 ${srcdir}/commands.texi \
66 ${srcdir}/entering.texi \
67 ${srcdir}/basic.texi \
72 ${srcdir}/killing.texi \
74 ${srcdir}/display.texi \
75 ${srcdir}/search.texi \
76 ${srcdir}/fixit.texi \
77 ${srcdir}/files.texi \
78 ${srcdir}/buffers.texi \
79 ${srcdir}/windows.texi \
80 ${srcdir}/frames.texi \
82 ${srcdir}/major.texi \
83 ${srcdir}/indent.texi \
85 ${srcdir}/programs.texi \
86 ${srcdir}/building.texi \
87 ${srcdir}/maintaining.texi \
88 ${srcdir}/abbrevs.texi \
89 ${srcdir}/picture.texi \
90 ${srcdir}/sending.texi \
91 ${srcdir}/rmail.texi \
92 ${srcdir}/dired.texi \
93 ${srcdir}/calendar.texi \
95 ${srcdir}/custom.texi \
96 ${srcdir}/trouble.texi \
97 ${srcdir}/cmdargs.texi \
98 ${srcdir}/xresources.texi \
100 ${srcdir}/macos.texi \
101 ${srcdir}/msdog.texi \
103 ${srcdir}/glossary.texi \
105 ${srcdir}/kmacro.texi
107 info: $(top_srcdir
)/info $(INFO_TARGETS
)
114 # Note that all the Info targets build the Info files
115 # in srcdir. There is no provision for Info files
116 # to exist in the build directory.
117 # In a distribution of Emacs, the Info files should be up to date.
119 # The following target uses an explicit -o switch to work around
120 # the @setfilename directive in info.texi, which is required for
121 # the Texinfo distribution.
123 ..
/info/info: ${INFOSOURCES}
124 cd
$(srcdir); $(MAKEINFO
) --no-split
info.texi
-o
$@
126 info.
dvi: ${INFOSOURCES}
127 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/info.texi
129 ..
/info/emacs
: ${EMACSSOURCES}
130 cd
$(srcdir); $(MAKEINFO
) emacs.texi
132 emacs.
dvi: ${EMACSSOURCES}
133 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/emacs.texi
135 # This target is here so you could easily get the list of the *.texi
136 # files which belong to the Emacs manual (as opposed to the separate
137 # manuals for CL, CC Mode, Ebrowse, etc.). With this target, you can
138 # say things like "grep foo `make emacsman`".
140 @echo
$(EMACSSOURCES
)
142 ..
/info/ccmode
: cc-mode.texi
143 cd
$(srcdir); $(MAKEINFO
) cc-mode.texi
144 cc-mode.
dvi: cc-mode.texi
145 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/cc-mode.texi
147 ..
/info/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 ..
/info/pcl-cvs
: pcl-cvs.texi
153 cd
$(srcdir); $(MAKEINFO
) pcl-cvs.texi
154 pcl-cvs.
dvi: pcl-cvs.texi
155 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/pcl-cvs.texi
157 ..
/info/eshell
: eshell.texi
158 cd
$(srcdir); $(MAKEINFO
) eshell.texi
159 eshell.
dvi: eshell.texi
160 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/eshell.texi
163 cd
$(srcdir); $(MAKEINFO
) cl.texi
165 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/cl.texi
167 ..
/info/dired-x
: dired-x.texi
168 cd
$(srcdir); $(MAKEINFO
) dired-x.texi
169 dired-x.
dvi: dired-x.texi
170 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/dired-x.texi
172 ..
/info/ediff
: ediff.texi
173 cd
$(srcdir); $(MAKEINFO
) ediff.texi
174 ediff.
dvi: ediff.texi
175 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ediff.texi
177 ..
/info/forms
: forms.texi
178 cd
$(srcdir); $(MAKEINFO
) forms.texi
179 forms.
dvi: forms.texi
180 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/forms.texi
182 ..
/info/gnus
: gnus.texi
183 cd
$(srcdir); $(MAKEINFO
) gnus.texi
185 sed
-e
'/@iflatex/,/@end iflatex/d' ${srcdir}/gnus.texi
> gnustmp.texi
186 $(ENVADD
) $(TEXI2DVI
) gnustmp.texi
187 cp gnustmp.
dvi $*.
dvi
190 ..
/info/message
: message.texi
191 cd
$(srcdir); $(MAKEINFO
) message.texi
192 message.
dvi: message.texi
193 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/message.texi
195 ..
/info/mh-e
: mh-e.texi
196 cd
$(srcdir); $(MAKEINFO
) mh-e.texi
198 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/mh-e.texi
200 ..
/info/reftex
: reftex.texi
201 cd
$(srcdir); $(MAKEINFO
) reftex.texi
202 reftex.
dvi: reftex.texi
203 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/reftex.texi
206 cd
$(srcdir); $(MAKEINFO
) sc.texi
208 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/sc.texi
210 ..
/info/vip
: vip.texi
211 cd
$(srcdir); $(MAKEINFO
) vip.texi
213 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/vip.texi
215 ..
/info/viper
: viper.texi
216 cd
$(srcdir); $(MAKEINFO
) viper.texi
217 viper.
dvi: viper.texi
218 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/viper.texi
220 ..
/info/widget
: widget.texi
221 cd
$(srcdir); $(MAKEINFO
) widget.texi
222 widget.
dvi: widget.texi
223 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/widget.texi
225 ..
/info/efaq
: faq.texi
226 cd
$(srcdir); $(MAKEINFO
) faq.texi
228 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/faq.texi
230 ..
/etc
/GNU
: gnu1.texi gnu.texi
231 cd
$(srcdir) && makeinfo --no-headers
-o ..
/etc
/GNU gnu1.texi
233 ..
/info/autotype
: autotype.texi
234 cd
$(srcdir); $(MAKEINFO
) autotype.texi
235 autotype.
dvi: autotype.texi
236 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/autotype.texi
238 ..
/info/calc
: calc.texi
239 cd
$(srcdir); $(MAKEINFO
) calc.texi
242 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/calc.texi
244 # This is produced with --no-split to avoid making files whose
245 # names clash on DOS 8+3 filesystems
246 ..
/info/idlwave
: idlwave.texi
247 cd
$(srcdir); $(MAKEINFO
) --no-split idlwave.texi
248 idlwave.
dvi: idlwave.texi
249 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/idlwave.texi
251 ..
/info/eudc
: eudc.texi
252 cd
$(srcdir); $(MAKEINFO
) eudc.texi
254 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/eudc.texi
256 ..
/info/ebrowse
: ebrowse.texi
257 cd
$(srcdir); $(MAKEINFO
) ebrowse.texi
258 ebrowse.
dvi: ebrowse.texi
259 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ebrowse.texi
261 ..
/info/woman
: woman.texi
262 cd
$(srcdir); $(MAKEINFO
) woman.texi
263 woman.
dvi: woman.texi
264 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/woman.texi
266 ..
/info/speedbar
: speedbar.texi
267 cd
$(srcdir); $(MAKEINFO
) speedbar.texi
268 speedbar.
dvi: speedbar.texi
269 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/speedbar.texi
271 ..
/info/emacs-mime
: emacs-mime.texi
272 cd
$(srcdir); $(MAKEINFO
) emacs-mime.texi
273 emacs-mime.
dvi: emacs-mime.texi
274 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/emacs-mime.texi
276 ..
/info/tramp
: tramp.texi
277 cd
$(srcdir); $(MAKEINFO
) -D emacs tramp.texi
278 tramp.
dvi: tramp.texi
279 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/tramp.texi
281 ..
/info/ses
: ses.texi
282 cd
$(srcdir); $(MAKEINFO
) ses.texi
284 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ses.texi
286 ..
/info/smtpmail
: smtpmail.texi
287 cd
$(srcdir); $(MAKEINFO
) smtpmail.texi
288 smtpmail.
dvi: smtpmail.texi
289 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/smtpmail.texi
291 ..
/info/flymake
: flymake.texi
292 cd
$(srcdir); $(MAKEINFO
) flymake.texi
293 flymake.
dvi: flymake.texi
294 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/flymake.texi
297 rm -f
*.log
*.cp
*.fn
*.ky
*.pg
*.vr core
*.tp
*.core gnustmp.
*
304 maintainer-clean
: distclean
305 rm -f
*.aux
*.cps
*.fns
*.kys
*.pgs
*.vrs
*.toc
306 # Don't delete these, because they are outside the current directory.
307 # for file in $(INFO_TARGETS); do rm -f $${file}*; done
310 # Formerly this directory had texindex.c and getopt.c in it
311 # and this makefile built them to make texindex.
312 # That caused trouble because this is run entirely in the source directory.
313 # Since we expect to get texi2dvi from elsewhere,
314 # it is ok to expect texindex from elsewhere also.
316 # arch-tag: 19cdb89e-4acb-448e-b0cc-2ddc05948ee2