1 #### Makefile for the Emacs Manual and other documentation.
3 # Copyright (C) 1994, 1996, 1997, 1998, 1999, 2000, 2001
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.
29 # Tell make where to find source files; this is needed for the makefiles.
33 # The makeinfo program is part of the Texinfo distribution.
35 INFO_TARGETS
= ..
/info/emacs ..
/info/ccmode ..
/info/cl \
36 ..
/info/dired-x ..
/info/ediff ..
/info/forms ..
/info/gnus \
37 ..
/info/info ..
/info/message ..
/info/mh-e ..
/info/reftex \
38 ..
/info/sc ..
/info/vip ..
/info/viper ..
/info/widget \
39 ..
/info/efaq ..
/info/ada-mode ..
/info/autotype ..
/info/calc \
40 ..
/info/idlwave ..
/info/eudc ..
/info/ebrowse ..
/info/pcl-cvs \
41 ..
/info/woman ..
/info/emacs-mime ..
/info/eshell \
42 ..
/info/speedbar ..
/info/tramp
43 DVI_TARGETS
= emacs.
dvi calc.
dvi cc-mode.
dvi cl.
dvi dired-x.
dvi \
44 ediff.
dvi forms.
dvi gnus.
dvi message.
dvi mh-e.
dvi \
45 reftex.
dvi sc.
dvi vip.
dvi viper.
dvi widget.
dvi faq.
dvi \
46 ada-mode.
dvi autotype.
dvi idlwave.
dvi eudc.
dvi ebrowse.
dvi \
47 pcl-cvs.
dvi woman.
dvi emacs-mime.
dvi eshell.
dvi \
48 speedbar.
dvi tramp.
dvi
49 INFOSOURCES
= info.texi
51 # The following rule does not work with all versions of `make'.
57 ENVADD
= TEXINPUTS
="$(srcdir):$(TEXINPUTS)" MAKEINFO
="$(MAKEINFO) -I$(srcdir)"
60 ${srcdir}/emacs.texi \
61 ${srcdir}/doclicense.texi \
62 ${srcdir}/screen.texi \
63 ${srcdir}/commands.texi \
64 ${srcdir}/entering.texi \
65 ${srcdir}/basic.texi \
70 ${srcdir}/killing.texi \
72 ${srcdir}/display.texi \
73 ${srcdir}/search.texi \
74 ${srcdir}/fixit.texi \
75 ${srcdir}/files.texi \
76 ${srcdir}/buffers.texi \
77 ${srcdir}/windows.texi \
78 ${srcdir}/frames.texi \
80 ${srcdir}/major.texi \
81 ${srcdir}/indent.texi \
83 ${srcdir}/programs.texi \
84 ${srcdir}/building.texi \
85 ${srcdir}/maintaining.texi \
86 ${srcdir}/abbrevs.texi \
87 ${srcdir}/picture.texi \
88 ${srcdir}/sending.texi \
89 ${srcdir}/rmail.texi \
90 ${srcdir}/dired.texi \
91 ${srcdir}/calendar.texi \
93 ${srcdir}/custom.texi \
94 ${srcdir}/trouble.texi \
95 ${srcdir}/cmdargs.texi \
96 ${srcdir}/xresources.texi \
98 ${srcdir}/macos.texi \
99 ${srcdir}/msdog.texi \
101 ${srcdir}/glossary.texi \
104 info: $(INFO_TARGETS
)
108 # Note that all the Info targets build the Info files
109 # in srcdir. There is no provision for Info files
110 # to exist in the build directory.
111 # In a distribution of Emacs, the Info files should be up to date.
113 # The following target uses an explicit -o switch to work around
114 # the @setfilename directive in info.texi, which is required for
115 # the Texinfo distribution.
117 ..
/info/info: ${INFOSOURCES}
118 cd
$(srcdir); $(MAKEINFO
) --no-split
info.texi
-o
$@
120 info.
dvi: ${INFOSOURCES}
121 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/info.texi
123 ..
/info/emacs
: ${EMACSSOURCES}
124 cd
$(srcdir); $(MAKEINFO
) emacs.texi
126 emacs.
dvi: ${EMACSSOURCES}
127 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/emacs.texi
129 # This target is here so you could easily get the list of the *.texi
130 # files which belong to the Emacs manual (as opposed to the separate
131 # manuals for CL, CC Mode, Ebrowse, etc.). With this target, you can
132 # say things like "grep foo `make emacsman`".
134 @echo
$(EMACSSOURCES
)
136 ..
/info/ccmode
: cc-mode.texi
137 cd
$(srcdir); $(MAKEINFO
) cc-mode.texi
138 cc-mode.
dvi: cc-mode.texi
139 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/cc-mode.texi
141 ..
/info/ada-mode
: ada-mode.texi
142 cd
$(srcdir); $(MAKEINFO
) ada-mode.texi
143 ada-mode.
dvi: ada-mode.texi
144 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ada-mode.texi
146 ..
/info/pcl-cvs
: pcl-cvs.texi
147 cd
$(srcdir); $(MAKEINFO
) pcl-cvs.texi
148 pcl-cvs.
dvi: pcl-cvs.texi
149 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/pcl-cvs.texi
151 ..
/info/eshell
: eshell.texi
152 cd
$(srcdir); $(MAKEINFO
) eshell.texi
153 eshell.
dvi: eshell.texi
154 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/eshell.texi
157 cd
$(srcdir); $(MAKEINFO
) cl.texi
159 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/cl.texi
161 ..
/info/dired-x
: dired-x.texi
162 cd
$(srcdir); $(MAKEINFO
) dired-x.texi
163 dired-x.
dvi: dired-x.texi
164 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/dired-x.texi
166 ..
/info/ediff
: ediff.texi
167 cd
$(srcdir); $(MAKEINFO
) ediff.texi
168 ediff.
dvi: ediff.texi
169 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ediff.texi
171 ..
/info/forms
: forms.texi
172 cd
$(srcdir); $(MAKEINFO
) forms.texi
173 forms.
dvi: forms.texi
174 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/forms.texi
176 ..
/info/gnus
: gnus.texi
177 cd
$(srcdir); $(MAKEINFO
) gnus.texi
179 sed
-e
'/@iflatex/,/@end iflatex/d' ${srcdir}/gnus.texi
> gnustmp.texi
180 $(ENVADD
) $(TEXI2DVI
) gnustmp.texi
181 cp gnustmp.
dvi $*.
dvi
184 ..
/info/message
: message.texi
185 cd
$(srcdir); $(MAKEINFO
) message.texi
186 message.
dvi: message.texi
187 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/message.texi
189 ..
/info/mh-e
: mh-e.texi
190 cd
$(srcdir); $(MAKEINFO
) mh-e.texi
192 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/mh-e.texi
194 ..
/info/reftex
: reftex.texi
195 cd
$(srcdir); $(MAKEINFO
) reftex.texi
196 reftex.
dvi: reftex.texi
197 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/reftex.texi
200 cd
$(srcdir); $(MAKEINFO
) sc.texi
202 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/sc.texi
204 ..
/info/vip
: vip.texi
205 cd
$(srcdir); $(MAKEINFO
) vip.texi
207 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/vip.texi
209 ..
/info/viper
: viper.texi
210 cd
$(srcdir); $(MAKEINFO
) viper.texi
211 viper.
dvi: viper.texi
212 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/viper.texi
214 ..
/info/widget
: widget.texi
215 cd
$(srcdir); $(MAKEINFO
) widget.texi
216 widget.
dvi: widget.texi
217 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/widget.texi
219 ..
/info/efaq
: faq.texi
220 cd
$(srcdir); $(MAKEINFO
) faq.texi
222 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/faq.texi
224 ..
/etc
/GNU
: gnu1.texi gnu.texi
225 cd
$(srcdir) && makeinfo --no-headers
-o ..
/etc
/GNU gnu1.texi
227 ..
/info/autotype
: autotype.texi
228 cd
$(srcdir); $(MAKEINFO
) autotype.texi
229 autotype.
dvi: autotype.texi
230 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/autotype.texi
232 ..
/info/calc
: calc.texi
233 cd
$(srcdir); $(MAKEINFO
) calc.texi
236 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/calc.texi
238 # This is produced with --no-split to avoid making files whose
239 # names clash on DOS 8+3 filesystems
240 ..
/info/idlwave
: idlwave.texi
241 cd
$(srcdir); $(MAKEINFO
) --no-split idlwave.texi
242 idlwave.
dvi: idlwave.texi
243 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/idlwave.texi
245 ..
/info/eudc
: eudc.texi
246 cd
$(srcdir); $(MAKEINFO
) eudc.texi
248 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/eudc.texi
250 ..
/info/ebrowse
: ebrowse.texi
251 cd
$(srcdir); $(MAKEINFO
) ebrowse.texi
252 ebrowse.
dvi: ebrowse.texi
253 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ebrowse.texi
255 ..
/info/woman
: woman.texi
256 cd
$(srcdir); $(MAKEINFO
) woman.texi
257 woman.
dvi: woman.texi
258 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/woman.texi
260 ..
/info/speedbar
: speedbar.texi
261 cd
$(srcdir); $(MAKEINFO
) speedbar.texi
262 speedbar.
dvi: speedbar.texi
263 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/speedbar.texi
265 ..
/info/emacs-mime
: emacs-mime.texi
266 cd
$(srcdir); $(MAKEINFO
) emacs-mime.texi
267 emacs-mime.
dvi: emacs-mime.texi
268 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/emacs-mime.texi
270 ..
/info/tramp
: tramp.texi
271 cd
$(srcdir); $(MAKEINFO
) tramp.texi
272 tramp.
dvi: tramp.texi
273 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/tramp.texi
276 rm -f
*.log
*.cp
*.fn
*.ky
*.pg
*.vr core
*.tp
*.core gnustmp.
*
283 maintainer-clean
: distclean
284 rm -f
*.aux
*.cps
*.fns
*.kys
*.pgs
*.vrs
*.toc
285 # Don't delete these, because they are outside the current directory.
286 # for file in $(INFO_TARGETS); do rm -f $${file}*; done
289 # Formerly this directory had texindex.c and getopt.c in it
290 # and this makefile built them to make texindex.
291 # That caused trouble because this is run entirely in the source directory.
292 # Since we expect to get texi2dvi from elsewhere,
293 # it is ok to expect texindex from elsewhere also.