1 #### -*- Makefile -*- for the Emacs Manual and other documentation.
3 # Copyright (C) 2003, 2004
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 $(infodir)/flymake $(infodir)/emacs-xtra \
50 $(infodir)/pgg $(infodir)/sieve
51 DVI_TARGETS = emacs.dvi calc.dvi cc-mode.dvi cl.dvi dired-x.dvi \
52 ediff.dvi forms.dvi gnus.dvi message.dvi mh-e.dvi \
53 reftex.dvi sc.dvi vip.dvi viper.dvi widget.dvi faq.dvi \
54 ada-mode.dvi autotype.dvi idlwave.dvi eudc.dvi ebrowse.dvi \
55 pcl-cvs.dvi woman.dvi emacs-mime.dvi eshell.dvi \
56 speedbar.dvi tramp.dvi ses.dvi smtpmail.dvi flymake.dvi \
57 emacs-xtra.dvi pgg.dvi sieve.dvi
58 INFOSOURCES = info.texi
60 # The following rule does not work with all versions of `make'.
66 ENVADD = $(srcdir)\..\nt\envadd.bat "TEXINPUTS=$(srcdir);$(TEXINPUTS)" \
67 "MAKEINFO=$(MAKEINFO) -I$(srcdir)" /C
70 $(srcdir)/emacs.texi \
71 $(srcdir)/doclicense.texi \
72 $(srcdir)/screen.texi \
73 $(srcdir)/commands.texi \
74 $(srcdir)/entering.texi \
75 $(srcdir)/basic.texi \
80 $(srcdir)/killing.texi \
82 $(srcdir)/display.texi \
83 $(srcdir)/search.texi \
84 $(srcdir)/fixit.texi \
85 $(srcdir)/files.texi \
86 $(srcdir)/buffers.texi \
87 $(srcdir)/windows.texi \
88 $(srcdir)/frames.texi \
90 $(srcdir)/major.texi \
91 $(srcdir)/indent.texi \
93 $(srcdir)/programs.texi \
94 $(srcdir)/building.texi \
95 $(srcdir)/maintaining.texi \
96 $(srcdir)/abbrevs.texi \
97 $(srcdir)/picture.texi \
98 $(srcdir)/sending.texi \
99 $(srcdir)/rmail.texi \
100 $(srcdir)/dired.texi \
101 $(srcdir)/calendar.texi \
102 $(srcdir)/misc.texi \
103 $(srcdir)/custom.texi \
104 $(srcdir)/trouble.texi \
105 $(srcdir)/cmdargs.texi \
106 $(srcdir)/xresources.texi \
107 $(srcdir)/anti.texi \
108 $(srcdir)/macos.texi \
109 $(srcdir)/msdog.texi \
111 $(srcdir)/glossary.texi \
113 $(srcdir)/kmacro.texi
115 info: $(INFO_TARGETS)
116 $(MULTI_INSTALL_INFO) --info-dir=$(infodir) $(INFO_TARGETS)
120 # Note that all the Info targets build the Info files
121 # in srcdir. There is no provision for Info files
122 # to exist in the build directory.
123 # In a distribution of Emacs, the Info files should be up to date.
125 # The following target uses an explicit -o switch to work around
126 # the @setfilename directive in info.texi, which is required for
127 # the Texinfo distribution.
128 # Some Windows ports of makeinfo seem to require -o to come before the
129 # texi filename, contrary to GNU standards.
131 $(infodir)/info: $(INFOSOURCES)
132 $(MAKEINFO) --no-split -o $@ info.texi
134 info.dvi: $(INFOSOURCES)
135 $(ENVADD) $(TEXI2DVI) $(srcdir)/info.texi
137 $(infodir)/emacs: $(EMACSSOURCES)
138 $(MAKEINFO) emacs.texi
140 emacs.dvi: $(EMACSSOURCES)
141 $(ENVADD) $(TEXI2DVI) $(srcdir)/emacs.texi
143 # This target is here so you could easily get the list of the *.texi
144 # files which belong to the Emacs manual (as opposed to the separate
145 # manuals for CL, CC Mode, Ebrowse, etc.). With this target, you can
146 # say things like "grep foo `make emacsman`".
148 @echo $(EMACSSOURCES)
150 $(infodir)/ccmode: cc-mode.texi
151 $(MAKEINFO) cc-mode.texi
152 cc-mode.dvi: cc-mode.texi
153 $(ENVADD) $(TEXI2DVI) $(srcdir)/cc-mode.texi
155 $(infodir)/ada-mode: ada-mode.texi
156 $(MAKEINFO) ada-mode.texi
157 ada-mode.dvi: ada-mode.texi
158 $(ENVADD) $(TEXI2DVI) $(srcdir)/ada-mode.texi
160 $(infodir)/pcl-cvs: pcl-cvs.texi
161 $(MAKEINFO) pcl-cvs.texi
162 pcl-cvs.dvi: pcl-cvs.texi
163 $(ENVADD) $(TEXI2DVI) $(srcdir)/pcl-cvs.texi
165 $(infodir)/eshell: eshell.texi
166 $(MAKEINFO) eshell.texi
167 eshell.dvi: eshell.texi
168 $(ENVADD) $(TEXI2DVI) $(srcdir)/eshell.texi
170 $(infodir)/cl: cl.texi
173 $(ENVADD) $(TEXI2DVI) $(srcdir)/cl.texi
175 $(infodir)/dired-x: dired-x.texi
176 $(MAKEINFO) dired-x.texi
177 dired-x.dvi: dired-x.texi
178 $(ENVADD) $(TEXI2DVI) $(srcdir)/dired-x.texi
180 $(infodir)/ediff: ediff.texi
181 $(MAKEINFO) ediff.texi
182 ediff.dvi: ediff.texi
183 $(ENVADD) $(TEXI2DVI) $(srcdir)/ediff.texi
185 $(infodir)/flymake: flymake.texi
186 $(MAKEINFO) flymake.texi
187 flymake.dvi: flymake.texi
188 $(ENVADD) $(TEXI2DVI) $(srcdir)/flymake.texi
190 $(infodir)/forms: forms.texi
191 $(MAKEINFO) forms.texi
192 forms.dvi: forms.texi
193 $(ENVADD) $(TEXI2DVI) $(srcdir)/forms.texi
195 # gnus/message/emacs-mime/sieve/pgg are part of Gnus:
196 $(infodir)/gnus: gnus.texi
197 $(MAKEINFO) gnus.texi
199 sed -e '/@iflatex/,/@end iflatex/d' $(srcdir)/gnus.texi > gnustmp.texi
200 $(ENVADD) $(TEXI2DVI) gnustmp.texi
201 cp gnustmp.dvi $*.dvi
204 $(infodir)/message: message.texi
205 $(MAKEINFO) message.texi
206 message.dvi: message.texi
207 $(ENVADD) $(TEXI2DVI) $(srcdir)/message.texi
209 $(infodir)/emacs-mime: emacs-mime.texi
210 $(MAKEINFO) emacs-mime.texi
211 emacs-mime.dvi: emacs-mime.texi
212 $(ENVADD) $(TEXI2DVI) $(srcdir)/emacs-mime.texi
214 $(infodir)/sieve: sieve.texi
215 $(MAKEINFO) sieve.texi
216 sieve.dvi: sieve.texi
217 $(ENVADD) $(TEXI2DVI) $(srcdir)/sieve.texi
219 $(infodir)/pgg: pgg.texi
222 $(ENVADD) $(TEXI2DVI) $(srcdir)/pgg.texi
224 $(infodir)/mh-e: mh-e.texi
225 $(MAKEINFO) mh-e.texi
227 $(ENVADD) $(TEXI2DVI) $(srcdir)/mh-e.texi
229 $(infodir)/reftex: reftex.texi
230 $(MAKEINFO) reftex.texi
231 reftex.dvi: reftex.texi
232 $(ENVADD) $(TEXI2DVI) $(srcdir)/reftex.texi
234 $(infodir)/sc: sc.texi
237 $(ENVADD) $(TEXI2DVI) $(srcdir)/sc.texi
239 $(infodir)/vip: vip.texi
242 $(ENVADD) $(TEXI2DVI) $(srcdir)/vip.texi
244 $(infodir)/viper: viper.texi
245 $(MAKEINFO) viper.texi
246 viper.dvi: viper.texi
247 $(ENVADD) $(TEXI2DVI) $(srcdir)/viper.texi
249 $(infodir)/widget: widget.texi
250 $(MAKEINFO) widget.texi
251 widget.dvi: widget.texi
252 $(ENVADD) $(TEXI2DVI) $(srcdir)/widget.texi
254 $(infodir)/efaq: faq.texi
257 $(ENVADD) $(TEXI2DVI) $(srcdir)/faq.texi
259 ../etc/GNU: gnu1.texi gnu.texi
260 $(MAKEINFO) --no-headers -o ../etc/GNU gnu1.texi
262 $(infodir)/autotype: autotype.texi
263 $(MAKEINFO) autotype.texi
264 autotype.dvi: autotype.texi
265 $(ENVADD) $(TEXI2DVI) $(srcdir)/autotype.texi
267 $(infodir)/calc: calc.texi
268 $(MAKEINFO) calc.texi
271 $(ENVADD) $(TEXI2DVI) $(srcdir)/calc.texi
273 # This is produced with --no-split to avoid making files whose
274 # names clash on DOS 8+3 filesystems
275 $(infodir)/idlwave: idlwave.texi
276 $(MAKEINFO) --no-split idlwave.texi
277 idlwave.dvi: idlwave.texi
278 $(ENVADD) $(TEXI2DVI) $(srcdir)/idlwave.texi
280 $(infodir)/eudc: eudc.texi
281 $(MAKEINFO) eudc.texi
283 $(ENVADD) $(TEXI2DVI) $(srcdir)/eudc.texi
285 $(infodir)/ebrowse: ebrowse.texi
286 $(MAKEINFO) ebrowse.texi
287 ebrowse.dvi: ebrowse.texi
288 $(ENVADD) $(TEXI2DVI) $(srcdir)/ebrowse.texi
290 $(infodir)/woman: woman.texi
291 $(MAKEINFO) woman.texi
292 woman.dvi: woman.texi
293 $(ENVADD) $(TEXI2DVI) $(srcdir)/woman.texi
295 $(infodir)/speedbar: speedbar.texi
296 $(MAKEINFO) speedbar.texi
297 speedbar.dvi: speedbar.texi
298 $(ENVADD) $(TEXI2DVI) $(srcdir)/speedbar.texi
300 $(infodir)/tramp: tramp.texi
301 $(MAKEINFO) tramp.texi
302 tramp.dvi: tramp.texi
303 $(ENVADD) $(TEXI2DVI) $(srcdir)/tramp.texi
305 $(infodir)/ses: ses.texi
308 $(ENVADD) $(TEXI2DVI) $(srcdir)/ses.texi
310 $(infodir)/smtpmail: smtpmail.texi
311 $(MAKEINFO) smtpmail.texi
312 smtpmail.dvi: smtpmail.texi
313 $(ENVADD) $(TEXI2DVI) $(srcdir)/smtpmail.texi
315 $(infodir)/emacs-xtra: emacs-xtra.texi
316 $(MAKEINFO) emacs-xtra.texi
318 emacs-xtra.dvi: emacs-xtra.texi
319 $(ENVADD) $(TEXI2DVI) $(srcdir)/emacs-xtra.texi
322 - $(DEL) *.log *.cp *.fn *.ky *.pg *.vr core *.tp *.core gnustmp.*
326 - $(DEL) $(infodir)/emacs* $(infodir)/ccmode* \
327 $(infodir)/cl* $(infodir)/dired-x* \
328 $(infodir)/ediff* $(infodir)/forms* \
329 $(infodir)/gnus* $(infodir)/info* \
330 $(infodir)/message* $(infodir)/mh-e* \
331 $(infodir)/reftex* $(infodir)/sc* \
332 $(infodir)/vip* $(infodir)/widget* \
333 $(infodir)/efaq* $(infodir)/ada-mode* \
334 $(infodir)/autotype* $(infodir)/calc* \
335 $(infodir)/idlwave* $(infodir)/eudc* \
336 $(infodir)/ebrowse* $(infodir)/pcl-cvs* \
337 $(infodir)/woman* $(infodir)/eshell* \
338 $(infodir)/speedbar* $(infodir)/tramp* \
339 $(infodir)/ses* $(infodir)/smtpmail* \
344 maintainer-clean: distclean
345 - $(DEL) *.aux *.cps *.fns *.kys *.pgs *.vrs *.toc
346 # Don't delete these, because they are outside the current directory.
347 # for file in $(INFO_TARGETS); do rm -f $${file}*; done
350 # Formerly this directory had texindex.c and getopt.c in it
351 # and this makefile built them to make texindex.
352 # That caused trouble because this is run entirely in the source directory.
353 # Since we expect to get texi2dvi from elsewhere,
354 # it is ok to expect texindex from elsewhere also.