1 #### -*- Makefile -*- for documentation other than the Emacs manual.
3 # Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5 # This file is part of GNU Emacs.
7 # GNU Emacs is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3, or (at your option)
12 # GNU Emacs is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with GNU Emacs; see the file COPYING. If not, write to
19 # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 # Boston, MA 02110-1301, USA.
22 # Where to find the source code. The source code for Emacs's C kernel is
23 # expected to be in $(srcdir)/src, and the source code for Emacs's
24 # utility programs is expected to be in $(srcdir)/lib-src. This is
25 # set by the configure script's `--srcdir' option.
28 infodir = $(srcdir)/../../info
30 # The makeinfo program is part of the Texinfo distribution.
31 MAKEINFO = makeinfo --force
32 MULTI_INSTALL_INFO = $(srcdir)\..\..\nt\multi-install-info.bat
33 INFO_TARGETS = $(infodir)/ccmode \
34 $(infodir)/cl $(infodir)/dbus $(infodir)/dired-x \
35 $(infodir)/ediff $(infodir)/forms $(infodir)/gnus \
36 $(infodir)/message $(infodir)/sieve $(infodir)/pgg \
37 $(infodir)/emacs-mime $(infodir)/info $(infodir)/mh-e \
38 $(infodir)/reftex $(infodir)/sc $(infodir)/vip \
39 $(infodir)/viper $(infodir)/widget $(infodir)/efaq \
40 $(infodir)/ada-mode $(infodir)/autotype $(infodir)/calc \
41 $(infodir)/idlwave $(infodir)/eudc $(infodir)/ebrowse \
42 $(infodir)/pcl-cvs $(infodir)/woman $(infodir)/eshell \
43 $(infodir)/org $(infodir)/url $(infodir)/speedbar \
44 $(infodir)/tramp $(infodir)/ses $(infodir)/smtpmail \
45 $(infodir)/flymake $(infodir)/newsticker $(infodir)/rcirc \
46 $(infodir)/erc $(infodir)/remember $(infodir)/nxml-mode \
48 DVI_TARGETS = calc.dvi cc-mode.dvi cl.dvi dbus.dvi dired-x.dvi \
49 ediff.dvi forms.dvi gnus.dvi message.dvi emacs-mime.dvi \
50 gnus.dvi message.dvi sieve.dvi pgg.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 eshell.dvi org.dvi url.dvi \
54 speedbar.dvi tramp.dvi ses.dvi smtpmail.dvi flymake.dvi \
55 newsticker.dvi rcirc.dvi erc.dvi remember.dvi nxml-mode.dvi \
57 INFOSOURCES = info.texi
59 # The following rule does not work with all versions of `make'.
65 ENVADD = $(srcdir)\..\..\nt\envadd.bat "TEXINPUTS=$(srcdir);$(TEXINPUTS)" \
66 "MAKEINFO=$(MAKEINFO) -I$(srcdir)" /C
73 # Note that all the Info targets build the Info files
74 # in srcdir. There is no provision for Info files
75 # to exist in the build directory.
76 # In a distribution of Emacs, the Info files should be up to date.
79 $(MULTI_INSTALL_INFO) --info-dir=$(infodir) $(INFO_TARGETS)
81 # The following target uses an explicit -o switch to work around
82 # the @setfilename directive in info.texi, which is required for
83 # the Texinfo distribution.
84 # Some Windows ports of makeinfo seem to require -o to come before the
85 # texi filename, contrary to GNU standards.
87 $(infodir)/info: $(INFOSOURCES)
88 $(MAKEINFO) --no-split -o $@ info.texi
90 info.dvi: $(INFOSOURCES)
91 $(ENVADD) $(TEXI2DVI) $(srcdir)/info.texi
94 $(infodir)/ccmode: cc-mode.texi
95 $(MAKEINFO) cc-mode.texi
96 cc-mode.dvi: cc-mode.texi
97 $(ENVADD) $(TEXI2DVI) $(srcdir)/cc-mode.texi
99 $(infodir)/ada-mode: ada-mode.texi
100 $(MAKEINFO) ada-mode.texi
101 ada-mode.dvi: ada-mode.texi
102 $(ENVADD) $(TEXI2DVI) $(srcdir)/ada-mode.texi
104 $(infodir)/pcl-cvs: pcl-cvs.texi
105 $(MAKEINFO) pcl-cvs.texi
106 pcl-cvs.dvi: pcl-cvs.texi
107 $(ENVADD) $(TEXI2DVI) $(srcdir)/pcl-cvs.texi
109 $(infodir)/eshell: eshell.texi
110 $(MAKEINFO) eshell.texi
111 eshell.dvi: eshell.texi
112 $(ENVADD) $(TEXI2DVI) $(srcdir)/eshell.texi
114 $(infodir)/cl: cl.texi
117 $(ENVADD) $(TEXI2DVI) $(srcdir)/cl.texi
119 $(infodir)/dbus: dbus.texi
120 $(MAKEINFO) dbus.texi
122 $(ENVADD) $(TEXI2DVI) $(srcdir)/dbus.texi
124 $(infodir)/dired-x: dired-x.texi
125 $(MAKEINFO) dired-x.texi
126 dired-x.dvi: dired-x.texi
127 $(ENVADD) $(TEXI2DVI) $(srcdir)/dired-x.texi
129 $(infodir)/ediff: ediff.texi
130 $(MAKEINFO) ediff.texi
131 ediff.dvi: ediff.texi
132 $(ENVADD) $(TEXI2DVI) $(srcdir)/ediff.texi
134 $(infodir)/flymake: flymake.texi
135 $(MAKEINFO) flymake.texi
136 flymake.dvi: flymake.texi
137 $(ENVADD) $(TEXI2DVI) $(srcdir)/flymake.texi
139 $(infodir)/forms: forms.texi
140 $(MAKEINFO) forms.texi
141 forms.dvi: forms.texi
142 $(ENVADD) $(TEXI2DVI) $(srcdir)/forms.texi
144 # gnus/message/emacs-mime/sieve/pgg are part of Gnus:
145 $(infodir)/gnus: gnus.texi
146 $(MAKEINFO) gnus.texi
148 sed -e "/@iflatex/,/@end iflatex/d" $(srcdir)/gnus.texi > gnustmp.texi
149 $(ENVADD) $(TEXI2DVI) gnustmp.texi
150 cp gnustmp.dvi $*.dvi
153 $(infodir)/message: message.texi
154 $(MAKEINFO) message.texi
155 message.dvi: message.texi
156 $(ENVADD) $(TEXI2DVI) $(srcdir)/message.texi
158 $(infodir)/emacs-mime: emacs-mime.texi
159 $(MAKEINFO) --enable-encoding emacs-mime.texi
160 emacs-mime.dvi: emacs-mime.texi
161 $(ENVADD) $(TEXI2DVI) $(srcdir)/emacs-mime.texi
163 $(infodir)/sieve: sieve.texi
164 $(MAKEINFO) sieve.texi
165 sieve.dvi: sieve.texi
166 $(ENVADD) $(TEXI2DVI) $(srcdir)/sieve.texi
168 $(infodir)/pgg: pgg.texi
171 $(ENVADD) $(TEXI2DVI) $(srcdir)/pgg.texi
173 $(infodir)/mh-e: mh-e.texi
174 $(MAKEINFO) mh-e.texi
176 $(ENVADD) $(TEXI2DVI) $(srcdir)/mh-e.texi
178 $(infodir)/reftex: reftex.texi
179 $(MAKEINFO) reftex.texi
180 reftex.dvi: reftex.texi
181 $(ENVADD) $(TEXI2DVI) $(srcdir)/reftex.texi
183 $(infodir)/remember: remember.texi
184 $(MAKEINFO) remember.texi
185 remember.dvi: remember.texi
186 $(ENVADD) $(TEXI2DVI) $(srcdir)/remember.texi
188 $(infodir)/sc: sc.texi
191 $(ENVADD) $(TEXI2DVI) $(srcdir)/sc.texi
193 $(infodir)/vip: vip.texi
196 $(ENVADD) $(TEXI2DVI) $(srcdir)/vip.texi
198 $(infodir)/viper: viper.texi
199 $(MAKEINFO) viper.texi
200 viper.dvi: viper.texi
201 $(ENVADD) $(TEXI2DVI) $(srcdir)/viper.texi
203 $(infodir)/widget: widget.texi
204 $(MAKEINFO) widget.texi
205 widget.dvi: widget.texi
206 $(ENVADD) $(TEXI2DVI) $(srcdir)/widget.texi
208 $(infodir)/efaq: faq.texi
211 $(ENVADD) $(TEXI2DVI) $(srcdir)/faq.texi
213 $(infodir)/autotype: autotype.texi
214 $(MAKEINFO) autotype.texi
215 autotype.dvi: autotype.texi
216 $(ENVADD) $(TEXI2DVI) $(srcdir)/autotype.texi
218 $(infodir)/calc: calc.texi
219 $(MAKEINFO) calc.texi
222 $(ENVADD) $(TEXI2DVI) $(srcdir)/calc.texi
224 # This is produced with --no-split to avoid making files whose
225 # names clash on DOS 8+3 filesystems
226 $(infodir)/idlwave: idlwave.texi
227 $(MAKEINFO) --no-split idlwave.texi
228 idlwave.dvi: idlwave.texi
229 $(ENVADD) $(TEXI2DVI) $(srcdir)/idlwave.texi
231 $(infodir)/eudc: eudc.texi
232 $(MAKEINFO) eudc.texi
234 $(ENVADD) $(TEXI2DVI) $(srcdir)/eudc.texi
236 $(infodir)/ebrowse: ebrowse.texi
237 $(MAKEINFO) ebrowse.texi
238 ebrowse.dvi: ebrowse.texi
239 $(ENVADD) $(TEXI2DVI) $(srcdir)/ebrowse.texi
241 $(infodir)/woman: woman.texi
242 $(MAKEINFO) woman.texi
243 woman.dvi: woman.texi
244 $(ENVADD) $(TEXI2DVI) $(srcdir)/woman.texi
246 $(infodir)/speedbar: speedbar.texi
247 $(MAKEINFO) speedbar.texi
248 speedbar.dvi: speedbar.texi
249 $(ENVADD) $(TEXI2DVI) $(srcdir)/speedbar.texi
251 $(infodir)/tramp: tramp.texi
252 $(MAKEINFO) tramp.texi
253 tramp.dvi: tramp.texi
254 $(ENVADD) $(TEXI2DVI) $(srcdir)/tramp.texi
256 $(infodir)/ses: ses.texi
259 $(ENVADD) $(TEXI2DVI) $(srcdir)/ses.texi
261 $(infodir)/smtpmail: smtpmail.texi
262 $(MAKEINFO) smtpmail.texi
263 smtpmail.dvi: smtpmail.texi
264 $(ENVADD) $(TEXI2DVI) $(srcdir)/smtpmail.texi
266 $(infodir)/org: org.texi
269 $(ENVADD) $(TEXI2DVI) $(srcdir)/org.texi
271 $(infodir)/url: url.texi
274 $(ENVADD) $(TEXI2DVI) $(srcdir)/url.texi
276 $(infodir)/newsticker: newsticker.texi
277 $(MAKEINFO) newsticker.texi
278 newsticker.dvi: newsticker.texi
279 $(ENVADD) $(TEXI2DVI) $(srcdir)/newsticker.texi
281 $(infodir)/nxml-mode: nxml-mode.texi
282 $(MAKEINFO) nxml-mode.texi
283 nxml-mod.dvi: nxml-mode.texi
284 $(ENVADD) $(TEXI2DVI) $(srcdir)/nxml-mode.texi
286 $(infodir)/rcirc: rcirc.texi
287 $(MAKEINFO) rcirc.texi
288 rcirc.dvi: rcirc.texi
289 $(ENVADD) $(TEXI2DVI) $(srcdir)/rcirc.texi
291 $(infodir)/erc: erc.texi
294 $(ENVADD) $(TEXI2DVI) $(srcdir)/erc.texi
296 $(infodir)/epa: epa.texi
299 $(ENVADD) $(TEXI2DVI) $(srcdir)/epa.texi
302 - $(DEL) *.log *.cp *.fn *.ky *.pg *.vr core *.tp *.core gnustmp.*
306 - $(DEL) $(infodir)/ccmode* $(infodir)/cl* \
307 $(infodir)/dbus* $(infodir)/dired-x* \
308 $(infodir)/ediff* $(infodir)/forms* \
309 $(infodir)/gnus* $(infodir)/info* \
310 $(infodir)/message* $(infodir)/mh-e* \
311 $(infodir)/reftex* $(infodir)/sc* \
312 $(infodir)/vip* $(infodir)/widget* \
313 $(infodir)/efaq* $(infodir)/ada-mode* \
314 $(infodir)/autotype* $(infodir)/calc* \
315 $(infodir)/idlwave* $(infodir)/eudc* \
316 $(infodir)/ebrowse* $(infodir)/pcl-cvs* \
317 $(infodir)/woman* $(infodir)/eshell* \
318 $(infodir)/speedbar* $(infodir)/tramp* \
319 $(infodir)/ses* $(infodir)/smtpmail* \
320 $(infodir)/url* $(infodir)/org* \
321 $(infodir)/flymake* $(infodir)/newsticker* \
322 $(infodir)/sieve* $(infodir)/pgg* \
323 $(infodir)/erc* $(infodir)/rcirc* \
324 $(infodir)/remember* $(infodir)/nxml-mode* \
329 maintainer-clean: distclean
330 - $(DEL) *.aux *.cps *.fns *.kys *.pgs *.vrs *.toc
331 # Don't delete these, because they are outside the current directory.
332 # for file in $(INFO_TARGETS); do rm -f $${file}*; done
335 # Formerly this directory had texindex.c and getopt.c in it
336 # and this makefile built them to make texindex.
337 # That caused trouble because this is run entirely in the source directory.
338 # Since we expect to get texi2dvi from elsewhere,
339 # it is ok to expect texindex from elsewhere also.