1 #### Makefile for the Emacs Manual and other documentation.
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 infodir = $(srcdir)/../info
31 # The makeinfo program is part of the Texinfo distribution.
33 MULTI_INSTALL_INFO = $(srcdir)\..\nt\multi-install-info.bat
34 INFO_TARGETS = $(infodir)/emacs $(infodir)/ccmode \
35 $(infodir)/cl $(infodir)/dired-x \
36 $(infodir)/ediff $(infodir)/forms \
37 $(infodir)/gnus $(infodir)/info \
38 $(infodir)/message $(infodir)/mh-e \
39 $(infodir)/reftex $(infodir)/sc \
40 $(infodir)/vip $(infodir)/viper \
41 $(infodir)/widget $(infodir)/efaq \
42 $(infodir)/ada-mode $(infodir)/autotype \
43 $(infodir)/calc $(infodir)/idlwave \
44 $(infodir)/eudc $(infodir)/ebrowse \
45 $(infodir)/pcl-cvs $(infodir)/woman \
46 $(infodir)/emacs-mime $(infodir)/eshell \
47 $(infodir)/speedbar $(infodir)/tramp \
48 $(infodir)/ses $(infodir)/smtpmail
49 DVI_TARGETS = emacs.dvi calc.dvi cc-mode.dvi cl.dvi dired-x.dvi \
50 ediff.dvi forms.dvi gnus.dvi message.dvi mh-e.dvi \
51 reftex.dvi sc.dvi vip.dvi viper.dvi widget.dvi faq.dvi \
52 ada-mode.dvi autotype.dvi idlwave.dvi eudc.dvi ebrowse.dvi \
53 pcl-cvs.dvi woman.dvi emacs-mime.dvi eshell.dvi \
54 speedbar.dvi tramp.dvi ses.dvi smtpmail.dvi
55 INFOSOURCES = info.texi
57 # The following rule does not work with all versions of `make'.
63 ENVADD = $(srcdir)\..\nt\envadd.bat "TEXINPUTS=$(srcdir);$(TEXINPUTS)" \
64 "MAKEINFO=$(MAKEINFO) -I$(srcdir)" /C
67 $(srcdir)/emacs.texi \
68 $(srcdir)/doclicense.texi \
69 $(srcdir)/screen.texi \
70 $(srcdir)/commands.texi \
71 $(srcdir)/entering.texi \
72 $(srcdir)/basic.texi \
77 $(srcdir)/killing.texi \
79 $(srcdir)/display.texi \
80 $(srcdir)/search.texi \
81 $(srcdir)/fixit.texi \
82 $(srcdir)/files.texi \
83 $(srcdir)/buffers.texi \
84 $(srcdir)/windows.texi \
85 $(srcdir)/frames.texi \
87 $(srcdir)/major.texi \
88 $(srcdir)/indent.texi \
90 $(srcdir)/programs.texi \
91 $(srcdir)/building.texi \
92 $(srcdir)/maintaining.texi \
93 $(srcdir)/abbrevs.texi \
94 $(srcdir)/picture.texi \
95 $(srcdir)/sending.texi \
96 $(srcdir)/rmail.texi \
97 $(srcdir)/dired.texi \
98 $(srcdir)/calendar.texi \
100 $(srcdir)/custom.texi \
101 $(srcdir)/trouble.texi \
102 $(srcdir)/cmdargs.texi \
103 $(srcdir)/xresources.texi \
104 $(srcdir)/anti.texi \
105 $(srcdir)/macos.texi \
106 $(srcdir)/msdog.texi \
108 $(srcdir)/glossary.texi \
110 $(srcdir)/kmacro.texi
112 info: $(INFO_TARGETS)
113 $(MULTI_INSTALL_INFO) --info-dir=$(infodir) $(INFO_TARGETS)
117 # Note that all the Info targets build the Info files
118 # in srcdir. There is no provision for Info files
119 # to exist in the build directory.
120 # In a distribution of Emacs, the Info files should be up to date.
122 # The following target uses an explicit -o switch to work around
123 # the @setfilename directive in info.texi, which is required for
124 # the Texinfo distribution.
126 $(infodir)/info: $(INFOSOURCES)
127 $(MAKEINFO) --no-split info.texi -o $@
129 info.dvi: $(INFOSOURCES)
130 $(ENVADD) $(TEXI2DVI) $(srcdir)/info.texi
132 $(infodir)/emacs: $(EMACSSOURCES)
133 $(MAKEINFO) emacs.texi
135 emacs.dvi: $(EMACSSOURCES)
136 $(ENVADD) $(TEXI2DVI) $(srcdir)/emacs.texi
138 # This target is here so you could easily get the list of the *.texi
139 # files which belong to the Emacs manual (as opposed to the separate
140 # manuals for CL, CC Mode, Ebrowse, etc.). With this target, you can
141 # say things like "grep foo `make emacsman`".
143 @echo $(EMACSSOURCES)
145 $(infodir)/ccmode: cc-mode.texi
146 $(MAKEINFO) cc-mode.texi
147 cc-mode.dvi: cc-mode.texi
148 $(ENVADD) $(TEXI2DVI) $(srcdir)/cc-mode.texi
150 $(infodir)/ada-mode: ada-mode.texi
151 $(MAKEINFO) ada-mode.texi
152 ada-mode.dvi: ada-mode.texi
153 $(ENVADD) $(TEXI2DVI) $(srcdir)/ada-mode.texi
155 $(infodir)/pcl-cvs: pcl-cvs.texi
156 $(MAKEINFO) pcl-cvs.texi
157 pcl-cvs.dvi: pcl-cvs.texi
158 $(ENVADD) $(TEXI2DVI) $(srcdir)/pcl-cvs.texi
160 $(infodir)/eshell: eshell.texi
161 $(MAKEINFO) eshell.texi
162 eshell.dvi: eshell.texi
163 $(ENVADD) $(TEXI2DVI) $(srcdir)/eshell.texi
165 $(infodir)/cl: cl.texi
168 $(ENVADD) $(TEXI2DVI) $(srcdir)/cl.texi
170 $(infodir)/dired-x: dired-x.texi
171 $(MAKEINFO) dired-x.texi
172 dired-x.dvi: dired-x.texi
173 $(ENVADD) $(TEXI2DVI) $(srcdir)/dired-x.texi
175 $(infodir)/ediff: ediff.texi
176 $(MAKEINFO) ediff.texi
177 ediff.dvi: ediff.texi
178 $(ENVADD) $(TEXI2DVI) $(srcdir)/ediff.texi
180 $(infodir)/forms: forms.texi
181 $(MAKEINFO) forms.texi
182 forms.dvi: forms.texi
183 $(ENVADD) $(TEXI2DVI) $(srcdir)/forms.texi
185 $(infodir)/gnus: gnus.texi
186 $(MAKEINFO) gnus.texi
188 sed -e '/@iflatex/,/@end iflatex/d' $(srcdir)/gnus.texi > gnustmp.texi
189 $(ENVADD) $(TEXI2DVI) gnustmp.texi
190 cp gnustmp.dvi $*.dvi
193 $(infodir)/message: message.texi
194 $(MAKEINFO) message.texi
195 message.dvi: message.texi
196 $(ENVADD) $(TEXI2DVI) $(srcdir)/message.texi
198 $(infodir)/mh-e: mh-e.texi
199 $(MAKEINFO) mh-e.texi
201 $(ENVADD) $(TEXI2DVI) $(srcdir)/mh-e.texi
203 $(infodir)/reftex: reftex.texi
204 $(MAKEINFO) reftex.texi
205 reftex.dvi: reftex.texi
206 $(ENVADD) $(TEXI2DVI) $(srcdir)/reftex.texi
208 $(infodir)/sc: sc.texi
211 $(ENVADD) $(TEXI2DVI) $(srcdir)/sc.texi
213 $(infodir)/vip: vip.texi
216 $(ENVADD) $(TEXI2DVI) $(srcdir)/vip.texi
218 $(infodir)/viper: viper.texi
219 $(MAKEINFO) viper.texi
220 viper.dvi: viper.texi
221 $(ENVADD) $(TEXI2DVI) $(srcdir)/viper.texi
223 $(infodir)/widget: widget.texi
224 $(MAKEINFO) widget.texi
225 widget.dvi: widget.texi
226 $(ENVADD) $(TEXI2DVI) $(srcdir)/widget.texi
228 $(infodir)/efaq: faq.texi
231 $(ENVADD) $(TEXI2DVI) $(srcdir)/faq.texi
233 ../etc/GNU: gnu1.texi gnu.texi
234 $(MAKEINFO) --no-headers -o ../etc/GNU gnu1.texi
236 $(infodir)/autotype: autotype.texi
237 $(MAKEINFO) autotype.texi
238 autotype.dvi: autotype.texi
239 $(ENVADD) $(TEXI2DVI) $(srcdir)/autotype.texi
241 $(infodir)/calc: calc.texi
242 $(MAKEINFO) calc.texi
245 $(ENVADD) $(TEXI2DVI) $(srcdir)/calc.texi
247 # This is produced with --no-split to avoid making files whose
248 # names clash on DOS 8+3 filesystems
249 $(infodir)/idlwave: idlwave.texi
250 $(MAKEINFO) --no-split idlwave.texi
251 idlwave.dvi: idlwave.texi
252 $(ENVADD) $(TEXI2DVI) $(srcdir)/idlwave.texi
254 $(infodir)/eudc: eudc.texi
255 $(MAKEINFO) eudc.texi
257 $(ENVADD) $(TEXI2DVI) $(srcdir)/eudc.texi
259 $(infodir)/ebrowse: ebrowse.texi
260 $(MAKEINFO) ebrowse.texi
261 ebrowse.dvi: ebrowse.texi
262 $(ENVADD) $(TEXI2DVI) $(srcdir)/ebrowse.texi
264 $(infodir)/woman: woman.texi
265 $(MAKEINFO) woman.texi
266 woman.dvi: woman.texi
267 $(ENVADD) $(TEXI2DVI) $(srcdir)/woman.texi
269 $(infodir)/speedbar: speedbar.texi
270 $(MAKEINFO) speedbar.texi
271 speedbar.dvi: speedbar.texi
272 $(ENVADD) $(TEXI2DVI) $(srcdir)/speedbar.texi
274 $(infodir)/emacs-mime: emacs-mime.texi
275 $(MAKEINFO) emacs-mime.texi
276 emacs-mime.dvi: emacs-mime.texi
277 $(ENVADD) $(TEXI2DVI) $(srcdir)/emacs-mime.texi
279 $(infodir)/tramp: tramp.texi
280 $(MAKEINFO) tramp.texi
281 tramp.dvi: tramp.texi
282 $(ENVADD) $(TEXI2DVI) $(srcdir)/tramp.texi
284 $(infodir)/ses: ses.texi
287 $(ENVADD) $(TEXI2DVI) $(srcdir)/ses.texi
289 $(infodir)/smtpmail: smtpmail.texi
290 $(MAKEINFO) smtpmail.texi
291 smtpmail.dvi: smtpmail.texi
292 $(ENVADD) $(TEXI2DVI) $(srcdir)/smtpmail.texi
295 - $(DEL) *.log *.cp *.fn *.ky *.pg *.vr core *.tp *.core gnustmp.*
299 - $(DEL) $(infodir)/emacs* $(infodir)/ccmode* \
300 $(infodir)/cl* $(infodir)/dired-x* \
301 $(infodir)/ediff* $(infodir)/forms* \
302 $(infodir)/gnus* $(infodir)/info* \
303 $(infodir)/message* $(infodir)/mh-e* \
304 $(infodir)/reftex* $(infodir)/sc* \
305 $(infodir)/vip* $(infodir)/viper* \
306 $(infodir)/widget* $(infodir)/efaq* \
307 $(infodir)/ada-mode* $(infodir)/autotype* \
308 $(infodir)/calc* $(infodir)/idlwave* \
309 $(infodir)/eudc* $(infodir)/ebrowse* \
310 $(infodir)/pcl-cvs* $(infodir)/woman* \
311 $(infodir)/emacs-mime* $(infodir)/eshell* \
312 $(infodir)/speedbar* $(infodir)/tramp* \
313 $(infodir)/ses* $(infodir)/smtpmail*
317 maintainer-clean: distclean
318 - $(DEL) *.aux *.cps *.fns *.kys *.pgs *.vrs *.toc
319 # Don't delete these, because they are outside the current directory.
320 # for file in $(INFO_TARGETS); do rm -f $${file}*; done
323 # Formerly this directory had texindex.c and getopt.c in it
324 # and this makefile built them to make texindex.
325 # That caused trouble because this is run entirely in the source directory.
326 # Since we expect to get texi2dvi from elsewhere,
327 # it is ok to expect texindex from elsewhere also.
329 # arch-tag: 6e99da59-ad27-4816-82a0-cde9a101efae