Makefile.in 22.8 KB
Newer Older
1
#### Makefile for documentation other than the Emacs manual.
Glenn Morris's avatar
Glenn Morris committed
2

3
# Copyright (C) 1994, 1996-2012 Free Software Foundation, Inc.
Glenn Morris's avatar
Glenn Morris committed
4 5 6

# This file is part of GNU Emacs.

7
# GNU Emacs is free software: you can redistribute it and/or modify
Glenn Morris's avatar
Glenn Morris committed
8
# it under the terms of the GNU General Public License as published by
9 10
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
Glenn Morris's avatar
Glenn Morris committed
11 12 13 14 15 16 17

# GNU Emacs is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
18
# along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
Glenn Morris's avatar
Glenn Morris committed
19

20
SHELL = /bin/sh
21 22

# Where to find the source code.  $(srcdir) will be the man-aux
Glenn Morris's avatar
Glenn Morris committed
23 24 25 26
# subdirectory of the source tree.  This is
# set by the configure script's `--srcdir' option.
srcdir=@srcdir@

27
## Where the output files go.
28
buildinfodir = $(srcdir)/../../info
29
## Directory with emacsver.texi.
30
## Currently only used by efaq and calc.
31
emacsdir = $(srcdir)/../emacs
Glenn Morris's avatar
Glenn Morris committed
32

33 34
MKDIR_P = @MKDIR_P@

35 36 37 38
INFO_EXT=@INFO_EXT@
# Options used only when making info output.
INFO_OPTS=@INFO_OPTS@

Glenn Morris's avatar
Glenn Morris committed
39 40
# The makeinfo program is part of the Texinfo distribution.
# Use --force so that it generates output even if there are errors.
41 42
MAKEINFO = @MAKEINFO@
MAKEINFO_OPTS = --force -I$(emacsdir)
43

44 45 46 47 48 49 50 51
INFO_TARGETS = ada-mode auth autotype calc ccmode cl \
	dbus dired-x ebrowse ede ediff edt eieio \
	emacs-mime epa erc ert eshell eudc efaq \
	flymake forms gnus emacs-gnutls idlwave info.info \
	mairix-el message mh-e newsticker nxml-mode \
	org pcl-cvs pgg rcirc remember reftex sasl \
	sc semantic ses sieve smtpmail speedbar tramp \
	url vip viper widget woman
52 53 54

DVI_TARGETS = \
	ada-mode.dvi \
55
	auth.dvi \
56 57 58 59
	autotype.dvi \
	calc.dvi \
	cc-mode.dvi \
	cl.dvi \
60
	dbus.dvi \
61 62
	dired-x.dvi \
	ebrowse.dvi \
Chong Yidong's avatar
Chong Yidong committed
63
	ede.dvi \
64
	ediff.dvi \
65
	edt.dvi \
Chong Yidong's avatar
Chong Yidong committed
66
	eieio.dvi \
67
	emacs-mime.dvi \
Michael Olson's avatar
Michael Olson committed
68
	epa.dvi \
69
	erc.dvi \
70
	ert.dvi \
71 72 73 74 75 76
	eshell.dvi \
	eudc.dvi \
	faq.dvi \
	flymake.dvi \
	forms.dvi \
	gnus.dvi \
77
	emacs-gnutls.dvi \
78 79
	idlwave.dvi \
	info.dvi \
Chong Yidong's avatar
Chong Yidong committed
80
	mairix-el.dvi \
81 82 83
	message.dvi \
	mh-e.dvi \
	newsticker.dvi \
84
	nxml-mode.dvi \
85 86 87 88 89
	org.dvi \
	pcl-cvs.dvi \
	pgg.dvi \
	rcirc.dvi \
	reftex.dvi \
90
	remember.dvi \
91
	sasl.dvi \
92
	sc.dvi \
93
	semantic.dvi \
94 95 96 97 98 99 100 101 102 103 104
	ses.dvi \
	sieve.dvi \
	smtpmail.dvi \
	speedbar.dvi \
	tramp.dvi \
	url.dvi \
	vip.dvi \
	viper.dvi \
	widget.dvi \
	woman.dvi

105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
PDF_TARGETS = \
	ada-mode.pdf \
	auth.pdf \
	autotype.pdf \
	calc.pdf \
	cc-mode.pdf \
	cl.pdf \
	dbus.pdf \
	dired-x.pdf \
	ebrowse.pdf \
	ede.pdf \
	ediff.pdf \
	edt.pdf \
	eieio.pdf \
	emacs-mime.pdf \
	epa.pdf \
	erc.pdf \
122
	ert.pdf \
123 124 125 126 127 128
	eshell.pdf \
	eudc.pdf \
	faq.pdf \
	flymake.pdf \
	forms.pdf \
	gnus.pdf \
129
	emacs-gnutls.pdf \
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
	idlwave.pdf \
	info.pdf \
	mairix-el.pdf \
	message.pdf \
	mh-e.pdf \
	newsticker.pdf \
	nxml-mode.pdf \
	org.pdf \
	pcl-cvs.pdf \
	pgg.pdf \
	rcirc.pdf \
	reftex.pdf \
	remember.pdf \
	sasl.pdf \
	sc.pdf \
	semantic.pdf \
	ses.pdf \
	sieve.pdf \
	smtpmail.pdf \
	speedbar.pdf \
	tramp.pdf \
	url.pdf \
	vip.pdf \
	viper.pdf \
	widget.pdf \
	woman.pdf
156

157 158
HTML_TARGETS = emacs-faq.html

159
TEXI2DVI = texi2dvi
160
TEXI2PDF = texi2pdf
Glenn Morris's avatar
Glenn Morris committed
161

162 163
ENVADD = TEXINPUTS="$(srcdir):$(emacsdir):$(TEXINPUTS)" \
         MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
Glenn Morris's avatar
Glenn Morris committed
164

165
mkinfodir = @${MKDIR_P} ${buildinfodir}
166

167
.PHONY: info dvi pdf echo-info
168 169
## Prevent implicit rule triggering for foo.info.
.SUFFIXES:
170

171 172 173
# Default.
info: $(INFO_TARGETS)

174
## Used by top-level Makefile.
175
## Base file names of output info files.
176
echo-info:
177
	@echo "$(INFO_TARGETS) " | \
178
	  sed -e 's|[^ ]*/||g' -e 's/\.info//g' -e "s/  */$(INFO_EXT) /g"
Glenn Morris's avatar
Glenn Morris committed
179

180 181 182 183
# please modify this for all the web manual targets
webhack: clean
	$(MAKE) pdf MAKEINFO_OPTS="-DWEBHACKDEVEL $(MAKEINFO_OPTS)"

Glenn Morris's avatar
Glenn Morris committed
184 185
dvi: $(DVI_TARGETS)

186
pdf: $(PDF_TARGETS)
187

188 189
# Note that all the Info targets build the Info files in srcdir.
# There is no provision for Info files to exist in the build directory.
Glenn Morris's avatar
Glenn Morris committed
190 191
# In a distribution of Emacs, the Info files should be up to date.

192 193
# Note: "<" is not portable in ordinary make rules.

194 195
ada-mode : $(buildinfodir)/ada-mode$(INFO_EXT)
$(buildinfodir)/ada-mode$(INFO_EXT): ${srcdir}/ada-mode.texi
196
	$(mkinfodir)
197
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/ada-mode.texi
198
ada-mode.dvi: ${srcdir}/ada-mode.texi
199
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ada-mode.texi
200
ada-mode.pdf: ${srcdir}/ada-mode.texi
201
	$(ENVADD) $(TEXI2PDF) ${srcdir}/ada-mode.texi
Glenn Morris's avatar
Glenn Morris committed
202

203 204
auth : $(buildinfodir)/auth$(INFO_EXT)
$(buildinfodir)/auth$(INFO_EXT): ${srcdir}/auth.texi
205
	$(mkinfodir)
206
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/auth.texi
207
auth.dvi: ${srcdir}/auth.texi
208
	$(ENVADD) $(TEXI2DVI) ${srcdir}/auth.texi
209
auth.pdf: ${srcdir}/auth.texi
210
	$(ENVADD) $(TEXI2PDF) ${srcdir}/auth.texi
211

212 213
autotype : $(buildinfodir)/autotype$(INFO_EXT)
$(buildinfodir)/autotype$(INFO_EXT): ${srcdir}/autotype.texi
214
	$(mkinfodir)
215
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/autotype.texi
216
autotype.dvi: ${srcdir}/autotype.texi
217
	$(ENVADD) $(TEXI2DVI) ${srcdir}/autotype.texi
218
autotype.pdf: ${srcdir}/autotype.texi
219
	$(ENVADD) $(TEXI2PDF) ${srcdir}/autotype.texi
Glenn Morris's avatar
Glenn Morris committed
220

221 222
calc : $(buildinfodir)/calc$(INFO_EXT)
$(buildinfodir)/calc$(INFO_EXT): ${srcdir}/calc.texi $(emacsdir)/emacsver.texi
223
	$(mkinfodir)
224
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/calc.texi
225
calc.dvi: ${srcdir}/calc.texi $(emacsdir)/emacsver.texi
226
	$(ENVADD) $(TEXI2DVI) ${srcdir}/calc.texi
227
calc.pdf: ${srcdir}/calc.texi $(emacsdir)/emacsver.texi
228
	$(ENVADD) $(TEXI2PDF) ${srcdir}/calc.texi
Glenn Morris's avatar
Glenn Morris committed
229

230 231
ccmode : $(buildinfodir)/ccmode$(INFO_EXT)
$(buildinfodir)/ccmode$(INFO_EXT): ${srcdir}/cc-mode.texi
232
	$(mkinfodir)
233
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/cc-mode.texi
234
cc-mode.dvi: ${srcdir}/cc-mode.texi
235
	$(ENVADD) $(TEXI2DVI) ${srcdir}/cc-mode.texi
236
cc-mode.pdf: ${srcdir}/cc-mode.texi
237
	$(ENVADD) $(TEXI2PDF) ${srcdir}/cc-mode.texi
Glenn Morris's avatar
Glenn Morris committed
238

239
cl : $(buildinfodir)/cl$(INFO_EXT)
240
$(buildinfodir)/cl$(INFO_EXT): ${srcdir}/cl.texi $(emacsdir)/emacsver.texi
241
	$(mkinfodir)
242
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/cl.texi
243
cl.dvi: ${srcdir}/cl.texi $(emacsdir)/emacsver.texi
244
	$(ENVADD) $(TEXI2DVI) ${srcdir}/cl.texi
245
cl.pdf: ${srcdir}/cl.texi $(emacsdir)/emacsver.texi
246
	$(ENVADD) $(TEXI2PDF) ${srcdir}/cl.texi
Glenn Morris's avatar
Glenn Morris committed
247

248 249
dbus : $(buildinfodir)/dbus$(INFO_EXT)
$(buildinfodir)/dbus$(INFO_EXT): ${srcdir}/dbus.texi
250
	$(mkinfodir)
251
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/dbus.texi
252
dbus.dvi: ${srcdir}/dbus.texi
253
	$(ENVADD) $(TEXI2DVI) ${srcdir}/dbus.texi
254
dbus.pdf: ${srcdir}/dbus.texi
255
	$(ENVADD) $(TEXI2PDF) ${srcdir}/dbus.texi
256

257 258
dired-x : $(buildinfodir)/dired-x$(INFO_EXT)
$(buildinfodir)/dired-x$(INFO_EXT): ${srcdir}/dired-x.texi $(emacsdir)/emacsver.texi
259
	$(mkinfodir)
260
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/dired-x.texi
261
dired-x.dvi: ${srcdir}/dired-x.texi $(emacsdir)/emacsver.texi
262
	$(ENVADD) $(TEXI2DVI) ${srcdir}/dired-x.texi
263
dired-x.pdf: ${srcdir}/dired-x.texi $(emacsdir)/emacsver.texi
264
	$(ENVADD) $(TEXI2PDF) ${srcdir}/dired-x.texi
Glenn Morris's avatar
Glenn Morris committed
265

266 267
ebrowse : $(buildinfodir)/ebrowse$(INFO_EXT)
$(buildinfodir)/ebrowse$(INFO_EXT): ${srcdir}/ebrowse.texi
268
	$(mkinfodir)
269
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/ebrowse.texi
270
ebrowse.dvi: ${srcdir}/ebrowse.texi
271
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ebrowse.texi
272
ebrowse.pdf: ${srcdir}/ebrowse.texi
273
	$(ENVADD) $(TEXI2PDF) ${srcdir}/ebrowse.texi
274

275 276
ede : $(buildinfodir)/ede$(INFO_EXT)
$(buildinfodir)/ede$(INFO_EXT): ${srcdir}/ede.texi
277
	$(mkinfodir)
278
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/ede.texi
279
ede.dvi: ${srcdir}/ede.texi
280
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ede.texi
281
ede.pdf: ${srcdir}/ede.texi
282
	$(ENVADD) $(TEXI2PDF) ${srcdir}/ede.texi
Chong Yidong's avatar
Chong Yidong committed
283

284 285
ediff : $(buildinfodir)/ediff$(INFO_EXT)
$(buildinfodir)/ediff$(INFO_EXT): ${srcdir}/ediff.texi
286
	$(mkinfodir)
287
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/ediff.texi
288
ediff.dvi: ${srcdir}/ediff.texi
289
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ediff.texi
290
ediff.pdf: ${srcdir}/ediff.texi
291
	$(ENVADD) $(TEXI2PDF) ${srcdir}/ediff.texi
292

293 294
edt : $(buildinfodir)/edt$(INFO_EXT)
$(buildinfodir)/edt$(INFO_EXT): ${srcdir}/edt.texi
295
	$(mkinfodir)
296
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/edt.texi
297
edt.dvi: ${srcdir}/edt.texi
298
	$(ENVADD) $(TEXI2DVI) ${srcdir}/edt.texi
299
edt.pdf: ${srcdir}/edt.texi
300
	$(ENVADD) $(TEXI2PDF) ${srcdir}/edt.texi
Glenn Morris's avatar
Glenn Morris committed
301

302 303
eieio : $(buildinfodir)/eieio$(INFO_EXT)
$(buildinfodir)/eieio$(INFO_EXT): ${srcdir}/eieio.texi
304
	$(mkinfodir)
305
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/eieio.texi
306
eieio.dvi: ${srcdir}/eieio.texi
307
	$(ENVADD) $(TEXI2DVI) ${srcdir}/eieio.texi
308
eieio.pdf: ${srcdir}/eieio.texi
309
	$(ENVADD) $(TEXI2PDF) ${srcdir}/eieio.texi
Chong Yidong's avatar
Chong Yidong committed
310

311 312
emacs-gnutls : $(buildinfodir)/emacs-gnutls$(INFO_EXT)
$(buildinfodir)/emacs-gnutls$(INFO_EXT): ${srcdir}/emacs-gnutls.texi
313
	$(mkinfodir)
314
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/emacs-gnutls.texi
315
emacs-gnutls.dvi: ${srcdir}/emacs-gnutls.texi
316
	$(ENVADD) $(TEXI2DVI) ${srcdir}/emacs-gnutls.texi
317
emacs-gnutls.pdf: ${srcdir}/emacs-gnutls.texi
318
	$(ENVADD) $(TEXI2PDF) ${srcdir}/emacs-gnutls.texi
319

320 321
emacs-mime : $(buildinfodir)/emacs-mime$(INFO_EXT)
$(buildinfodir)/emacs-mime$(INFO_EXT): ${srcdir}/emacs-mime.texi
322
	$(mkinfodir)
323
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) --enable-encoding -o $@ ${srcdir}/emacs-mime.texi
324
emacs-mime.dvi: ${srcdir}/emacs-mime.texi
325
	$(ENVADD) $(TEXI2DVI) ${srcdir}/emacs-mime.texi
326
emacs-mime.pdf: ${srcdir}/emacs-mime.texi
327
	$(ENVADD) $(TEXI2PDF) ${srcdir}/emacs-mime.texi
328

329 330
epa : $(buildinfodir)/epa$(INFO_EXT)
$(buildinfodir)/epa$(INFO_EXT): ${srcdir}/epa.texi
331
	$(mkinfodir)
332
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/epa.texi
333
epa.dvi: ${srcdir}/epa.texi
334
	$(ENVADD) $(TEXI2DVI) ${srcdir}/epa.texi
335
epa.pdf: ${srcdir}/epa.texi
336
	$(ENVADD) $(TEXI2PDF) ${srcdir}/epa.texi
Michael Olson's avatar
Michael Olson committed
337

338
erc : $(buildinfodir)/erc$(INFO_EXT)
339
$(buildinfodir)/erc$(INFO_EXT): ${srcdir}/erc.texi $(emacsdir)/emacsver.texi
340
	$(mkinfodir)
341
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/erc.texi
342
erc.dvi: ${srcdir}/erc.texi $(emacsdir)/emacsver.texi
343
	$(ENVADD) $(TEXI2DVI) ${srcdir}/erc.texi
344
erc.pdf: ${srcdir}/erc.texi $(emacsdir)/emacsver.texi
345
	$(ENVADD) $(TEXI2PDF) ${srcdir}/erc.texi
346

347 348
ert : $(buildinfodir)/ert$(INFO_EXT)
$(buildinfodir)/ert$(INFO_EXT): ${srcdir}/ert.texi
349
	$(mkinfodir)
350
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/ert.texi
351
ert.dvi: ${srcdir}/ert.texi
352
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ert.texi
353
ert.pdf: ${srcdir}/ert.texi
354
	$(ENVADD) $(TEXI2PDF) ${srcdir}/ert.texi
355

356 357
eshell : $(buildinfodir)/eshell$(INFO_EXT)
$(buildinfodir)/eshell$(INFO_EXT): ${srcdir}/eshell.texi
358
	$(mkinfodir)
359
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/eshell.texi
360
eshell.dvi: ${srcdir}/eshell.texi
361
	$(ENVADD) $(TEXI2DVI) ${srcdir}/eshell.texi
362
eshell.pdf: ${srcdir}/eshell.texi
363
	$(ENVADD) $(TEXI2PDF) ${srcdir}/eshell.texi
Glenn Morris's avatar
Glenn Morris committed
364

365 366
eudc : $(buildinfodir)/eudc$(INFO_EXT)
$(buildinfodir)/eudc$(INFO_EXT): ${srcdir}/eudc.texi
367
	$(mkinfodir)
368
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/eudc.texi
369
eudc.dvi: ${srcdir}/eudc.texi
370
	$(ENVADD) $(TEXI2DVI) ${srcdir}/eudc.texi
371
eudc.pdf: ${srcdir}/eudc.texi
372
	$(ENVADD) $(TEXI2PDF) ${srcdir}/eudc.texi
373

374 375
efaq : $(buildinfodir)/efaq$(INFO_EXT)
$(buildinfodir)/efaq$(INFO_EXT): ${srcdir}/faq.texi $(emacsdir)/emacsver.texi
376
	$(mkinfodir)
377
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/faq.texi
378
faq.dvi: ${srcdir}/faq.texi $(emacsdir)/emacsver.texi
379
	$(ENVADD) $(TEXI2DVI) ${srcdir}/faq.texi
380
faq.pdf: ${srcdir}/faq.texi $(emacsdir)/emacsver.texi
381
	$(ENVADD) $(TEXI2PDF) ${srcdir}/faq.texi
382 383 384
## This is the name used on the Emacs web-page.
## sed fixes up links to point to split version of the manual.
emacs-faq.html: ${srcdir}/faq.texi $(emacsdir)/emacsver.texi
Glenn Morris's avatar
Glenn Morris committed
385
	$(MAKEINFO) $(MAKEINFO_OPTS) --no-split \
386
	  --css-ref='/layout.css' --html -o $@ ${srcdir}/faq.texi
387 388 389
	sed -i -e 's|a href="\([a-z]*\)\.html#\([^"]*\)"|a href="manual/html_node/\1/\2.html"|g' \
	  -e 's|/Top\.html|/|g' $@
emacs-faq.text: ${srcdir}/faq.texi $(emacsdir)/emacsver.texi
390
	$(MAKEINFO) $(MAKEINFO_OPTS) --plaintext -o $@ ${srcdir}/faq.texi
391

392 393
flymake : $(buildinfodir)/flymake$(INFO_EXT)
$(buildinfodir)/flymake$(INFO_EXT): ${srcdir}/flymake.texi
394
	$(mkinfodir)
395
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/flymake.texi
396
flymake.dvi: ${srcdir}/flymake.texi
397
	$(ENVADD) $(TEXI2DVI) ${srcdir}/flymake.texi
398
flymake.pdf: ${srcdir}/flymake.texi
399
	$(ENVADD) $(TEXI2PDF) ${srcdir}/flymake.texi
400

401 402
forms : $(buildinfodir)/forms$(INFO_EXT)
$(buildinfodir)/forms$(INFO_EXT): ${srcdir}/forms.texi
403
	$(mkinfodir)
404
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/forms.texi
405
forms.dvi: ${srcdir}/forms.texi
406
	$(ENVADD) $(TEXI2DVI) ${srcdir}/forms.texi
407
forms.pdf: ${srcdir}/forms.texi
408
	$(ENVADD) $(TEXI2PDF) ${srcdir}/forms.texi
Glenn Morris's avatar
Glenn Morris committed
409 410

# gnus/message/emacs-mime/sieve/pgg are part of Gnus:
411 412
gnus : $(buildinfodir)/gnus$(INFO_EXT)
$(buildinfodir)/gnus$(INFO_EXT): ${srcdir}/gnus.texi ${srcdir}/gnus-faq.texi
413
	$(mkinfodir)
414 415
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/gnus.texi
gnus.dvi: ${srcdir}/gnus.texi ${srcdir}/gnus-faq.texi
416
	sed -e '/@iflatex/,/@end iflatex/d' ${srcdir}/gnus.texi > gnustmp.texi
Glenn Morris's avatar
Glenn Morris committed
417
	$(ENVADD) $(TEXI2DVI) gnustmp.texi
418
	cp gnustmp.dvi $@
Glenn Morris's avatar
Glenn Morris committed
419
	rm gnustmp.*
420
gnus.pdf: ${srcdir}/gnus.texi ${srcdir}/gnus-faq.texi
421
	sed -e '/@iflatex/,/@end iflatex/d' ${srcdir}/gnus.texi > gnustmp.texi
422 423 424
	$(ENVADD) $(TEXI2PDF) gnustmp.texi
	cp gnustmp.pdf $@
	rm gnustmp.*
Glenn Morris's avatar
Glenn Morris committed
425

426
# NB this one needs --no-split even without a .info extension.
427 428
idlwave : $(buildinfodir)/idlwave$(INFO_EXT)
$(buildinfodir)/idlwave$(INFO_EXT): ${srcdir}/idlwave.texi
429
	$(mkinfodir)
430
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/idlwave.texi
431
idlwave.dvi: ${srcdir}/idlwave.texi
432
	$(ENVADD) $(TEXI2DVI) ${srcdir}/idlwave.texi
433
idlwave.pdf: ${srcdir}/idlwave.texi
434
	$(ENVADD) $(TEXI2PDF) ${srcdir}/idlwave.texi
435

436
# NB this one needs --no-split even without a .info extension.
437
# Avoid name clash with overall "info" target.
438 439
info.info : $(buildinfodir)/info$(INFO_EXT)
$(buildinfodir)/info$(INFO_EXT): ${srcdir}/info.texi
440
	$(mkinfodir)
441
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/info.texi
442
info.dvi: ${srcdir}/info.texi
443
	$(ENVADD) $(TEXI2DVI) ${srcdir}/info.texi
444
info.pdf: ${srcdir}/info.texi
445
	$(ENVADD) $(TEXI2PDF) ${srcdir}/info.texi
446

447 448
mairix-el : $(buildinfodir)/mairix-el$(INFO_EXT)
$(buildinfodir)/mairix-el$(INFO_EXT): ${srcdir}/mairix-el.texi
449
	$(mkinfodir)
450
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/mairix-el.texi
451
mairix-el.dvi: ${srcdir}/mairix-el.texi
452
	$(ENVADD) $(TEXI2DVI) ${srcdir}/mairix-el.texi
453
mairix-el.pdf: ${srcdir}/mairix-el.texi
454
	$(ENVADD) $(TEXI2PDF) ${srcdir}/mairix-el.texi
Chong Yidong's avatar
Chong Yidong committed
455

456 457
message : $(buildinfodir)/message$(INFO_EXT)
$(buildinfodir)/message$(INFO_EXT): ${srcdir}/message.texi
458
	$(mkinfodir)
459
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/message.texi
460
message.dvi: ${srcdir}/message.texi
461
	$(ENVADD) $(TEXI2DVI) ${srcdir}/message.texi
462
message.pdf: ${srcdir}/message.texi
463
	$(ENVADD) $(TEXI2PDF) ${srcdir}/message.texi
Glenn Morris's avatar
Glenn Morris committed
464

465 466
mh-e : $(buildinfodir)/mh-e$(INFO_EXT)
$(buildinfodir)/mh-e$(INFO_EXT): ${srcdir}/mh-e.texi
467
	$(mkinfodir)
468
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/mh-e.texi
469
mh-e.dvi: ${srcdir}/mh-e.texi
470
	$(ENVADD) $(TEXI2DVI) ${srcdir}/mh-e.texi
471
mh-e.pdf: ${srcdir}/mh-e.texi
472
	$(ENVADD) $(TEXI2PDF) ${srcdir}/mh-e.texi
Glenn Morris's avatar
Glenn Morris committed
473

474 475
newsticker : $(buildinfodir)/newsticker$(INFO_EXT)
$(buildinfodir)/newsticker$(INFO_EXT): ${srcdir}/newsticker.texi
476
	$(mkinfodir)
477
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/newsticker.texi
478
newsticker.dvi: ${srcdir}/newsticker.texi
479
	$(ENVADD) $(TEXI2DVI) ${srcdir}/newsticker.texi
480
newsticker.pdf: ${srcdir}/newsticker.texi
481
	$(ENVADD) $(TEXI2PDF) ${srcdir}/newsticker.texi
482

483 484
nxml-mode : $(buildinfodir)/nxml-mode$(INFO_EXT)
$(buildinfodir)/nxml-mode$(INFO_EXT): ${srcdir}/nxml-mode.texi
485
	$(mkinfodir)
486
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/nxml-mode.texi
487
nxml-mode.dvi: ${srcdir}/nxml-mode.texi
488
	$(ENVADD) $(TEXI2DVI) ${srcdir}/nxml-mode.texi
489
nxml-mode.pdf: ${srcdir}/nxml-mode.texi
490
	$(ENVADD) $(TEXI2PDF) ${srcdir}/nxml-mode.texi
491

492 493
org : $(buildinfodir)/org$(INFO_EXT)
$(buildinfodir)/org$(INFO_EXT): ${srcdir}/org.texi
494
	$(mkinfodir)
495
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/org.texi
496
org.dvi: ${srcdir}/org.texi
497
	$(ENVADD) $(TEXI2DVI) ${srcdir}/org.texi
498
org.pdf: ${srcdir}/org.texi
499
	$(ENVADD) $(TEXI2PDF) ${srcdir}/org.texi
500

501 502
pcl-cvs : $(buildinfodir)/pcl-cvs$(INFO_EXT)
$(buildinfodir)/pcl-cvs$(INFO_EXT): ${srcdir}/pcl-cvs.texi
503
	$(mkinfodir)
504
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/pcl-cvs.texi
505
pcl-cvs.dvi: ${srcdir}/pcl-cvs.texi
506
	$(ENVADD) $(TEXI2DVI) ${srcdir}/pcl-cvs.texi
507
pcl-cvs.pdf: ${srcdir}/pcl-cvs.texi
508
	$(ENVADD) $(TEXI2PDF) ${srcdir}/pcl-cvs.texi
Glenn Morris's avatar
Glenn Morris committed
509

510 511
pgg : $(buildinfodir)/pgg$(INFO_EXT)
$(buildinfodir)/pgg$(INFO_EXT): ${srcdir}/pgg.texi
512
	$(mkinfodir)
513
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/pgg.texi
514
pgg.dvi: ${srcdir}/pgg.texi
515
	$(ENVADD) $(TEXI2DVI) ${srcdir}/pgg.texi
516
pgg.pdf: ${srcdir}/pgg.texi
517
	$(ENVADD) $(TEXI2PDF) ${srcdir}/pgg.texi
Glenn Morris's avatar
Glenn Morris committed
518

519 520
rcirc : $(buildinfodir)/rcirc$(INFO_EXT)
$(buildinfodir)/rcirc$(INFO_EXT): ${srcdir}/rcirc.texi
521
	$(mkinfodir)
522
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/rcirc.texi
523
rcirc.dvi: ${srcdir}/rcirc.texi
524
	$(ENVADD) $(TEXI2DVI) ${srcdir}/rcirc.texi
525
rcirc.pdf: ${srcdir}/rcirc.texi
526
	$(ENVADD) $(TEXI2PDF) ${srcdir}/rcirc.texi
Glenn Morris's avatar
Glenn Morris committed
527

528
reftex : $(buildinfodir)/reftex$(INFO_EXT)
529
$(buildinfodir)/reftex$(INFO_EXT): ${srcdir}/reftex.texi $(emacsdir)/emacsver.texi
530
	$(mkinfodir)
531
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/reftex.texi
532
reftex.dvi: ${srcdir}/reftex.texi $(emacsdir)/emacsver.texi
533
	$(ENVADD) $(TEXI2DVI) ${srcdir}/reftex.texi
534
reftex.pdf: ${srcdir}/reftex.texi $(emacsdir)/emacsver.texi
535
	$(ENVADD) $(TEXI2PDF) ${srcdir}/reftex.texi
Glenn Morris's avatar
Glenn Morris committed
536

537 538
remember : $(buildinfodir)/remember$(INFO_EXT)
$(buildinfodir)/remember$(INFO_EXT): ${srcdir}/remember.texi
539
	$(mkinfodir)
540
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/remember.texi
541
remember.dvi: ${srcdir}/remember.texi
542
	$(ENVADD) $(TEXI2DVI) ${srcdir}/remember.texi
543
remember.pdf: ${srcdir}/remember.texi
544
	$(ENVADD) $(TEXI2PDF) ${srcdir}/remember.texi
545

546 547
sasl : $(buildinfodir)/sasl$(INFO_EXT)
$(buildinfodir)/sasl$(INFO_EXT): ${srcdir}/sasl.texi
548
	$(mkinfodir)
549
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/sasl.texi
550
sasl.dvi: ${srcdir}/sasl.texi
551
	$(ENVADD) $(TEXI2DVI) ${srcdir}/sasl.texi
552
sasl.pdf: ${srcdir}/sasl.texi
553
	$(ENVADD) $(TEXI2PDF) ${srcdir}/sasl.texi
554

555 556
sc : $(buildinfodir)/sc$(INFO_EXT)
$(buildinfodir)/sc$(INFO_EXT): ${srcdir}/sc.texi
557
	$(mkinfodir)
558
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/sc.texi
559
sc.dvi: ${srcdir}/sc.texi
560
	$(ENVADD) $(TEXI2DVI) ${srcdir}/sc.texi
561
sc.pdf: ${srcdir}/sc.texi
562
	$(ENVADD) $(TEXI2PDF) ${srcdir}/sc.texi
Glenn Morris's avatar
Glenn Morris committed
563

564 565
semantic : $(buildinfodir)/semantic$(INFO_EXT)
$(buildinfodir)/semantic$(INFO_EXT): ${srcdir}/semantic.texi ${srcdir}/sem-user.texi
566
	$(mkinfodir)
567 568
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/semantic.texi
semantic.dvi: ${srcdir}/semantic.texi ${srcdir}/sem-user.texi
569
	$(ENVADD) $(TEXI2DVI) ${srcdir}/semantic.texi
570
semantic.pdf: ${srcdir}/semantic.texi ${srcdir}/sem-user.texi
571
	$(ENVADD) $(TEXI2PDF) ${srcdir}/semantic.texi
572

573 574
ses : $(buildinfodir)/ses$(INFO_EXT)
$(buildinfodir)/ses$(INFO_EXT): ${srcdir}/ses.texi
575
	$(mkinfodir)
576
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/ses.texi
577
ses.dvi: ${srcdir}/ses.texi
578
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ses.texi
579
ses.pdf: ${srcdir}/ses.texi
580
	$(ENVADD) $(TEXI2PDF) ${srcdir}/ses.texi
Glenn Morris's avatar
Glenn Morris committed
581

582 583
sieve : $(buildinfodir)/sieve$(INFO_EXT)
$(buildinfodir)/sieve$(INFO_EXT): ${srcdir}/sieve.texi
584
	$(mkinfodir)
585
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/sieve.texi
586
sieve.dvi: ${srcdir}/sieve.texi
587
	$(ENVADD) $(TEXI2DVI) ${srcdir}/sieve.texi
588
sieve.pdf: ${srcdir}/sieve.texi
589
	$(ENVADD) $(TEXI2PDF) ${srcdir}/sieve.texi
Glenn Morris's avatar
Glenn Morris committed
590

591 592
smtpmail : $(buildinfodir)/smtpmail$(INFO_EXT)
$(buildinfodir)/smtpmail$(INFO_EXT): ${srcdir}/smtpmail.texi
593
	$(mkinfodir)
594
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/smtpmail.texi
595
smtpmail.dvi: ${srcdir}/smtpmail.texi
596
	$(ENVADD) $(TEXI2DVI) ${srcdir}/smtpmail.texi
597
smtpmail.pdf: ${srcdir}/smtpmail.texi
598
	$(ENVADD) $(TEXI2PDF) ${srcdir}/smtpmail.texi
Glenn Morris's avatar
Glenn Morris committed
599

600 601
speedbar : $(buildinfodir)/speedbar$(INFO_EXT)
$(buildinfodir)/speedbar$(INFO_EXT): ${srcdir}/speedbar.texi
602
	$(mkinfodir)
603
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/speedbar.texi
604
speedbar.dvi: ${srcdir}/speedbar.texi
605
	$(ENVADD) $(TEXI2DVI) ${srcdir}/speedbar.texi
606
speedbar.pdf: ${srcdir}/speedbar.texi
607
	$(ENVADD) $(TEXI2PDF) ${srcdir}/speedbar.texi
Glenn Morris's avatar
Glenn Morris committed
608

609 610
tramp : $(buildinfodir)/tramp$(INFO_EXT)
$(buildinfodir)/tramp$(INFO_EXT): ${srcdir}/tramp.texi ${srcdir}/trampver.texi
611
	$(mkinfodir)
612 613
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ -D emacs ${srcdir}/tramp.texi
tramp.dvi: ${srcdir}/tramp.texi ${srcdir}/trampver.texi
614
	$(ENVADD) $(TEXI2DVI) ${srcdir}/tramp.texi
615
tramp.pdf: ${srcdir}/tramp.texi ${srcdir}/trampver.texi
616
	$(ENVADD) $(TEXI2PDF) ${srcdir}/tramp.texi
Glenn Morris's avatar
Glenn Morris committed
617

618 619
url : $(buildinfodir)/url$(INFO_EXT)
$(buildinfodir)/url$(INFO_EXT): ${srcdir}/url.texi
620
	$(mkinfodir)
621
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/url.texi
622
url.dvi: ${srcdir}/url.texi
623
	$(ENVADD) $(TEXI2DVI) ${srcdir}/url.texi
624
url.pdf: ${srcdir}/url.texi
625
	$(ENVADD) $(TEXI2PDF) ${srcdir}/url.texi
Glenn Morris's avatar
Glenn Morris committed
626

627 628
vip : $(buildinfodir)/vip$(INFO_EXT)
$(buildinfodir)/vip$(INFO_EXT): ${srcdir}/vip.texi
629
	$(mkinfodir)
630
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/vip.texi
631
vip.dvi: ${srcdir}/vip.texi
632
	$(ENVADD) $(TEXI2DVI) ${srcdir}/vip.texi
633
vip.pdf: ${srcdir}/vip.texi
634
	$(ENVADD) $(TEXI2PDF) ${srcdir}/vip.texi
Glenn Morris's avatar
Glenn Morris committed
635

636 637
viper : $(buildinfodir)/viper$(INFO_EXT)
$(buildinfodir)/viper$(INFO_EXT): ${srcdir}/viper.texi
638
	$(mkinfodir)
639
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/viper.texi
640
viper.dvi: ${srcdir}/viper.texi
641
	$(ENVADD) $(TEXI2DVI) ${srcdir}/viper.texi
642
viper.pdf: ${srcdir}/viper.texi
643
	$(ENVADD) $(TEXI2PDF) ${srcdir}/viper.texi
Glenn Morris's avatar
Glenn Morris committed
644