Makefile.in 23.2 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
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 \
50
	sc semantic ses sieve smtpmail speedbar srecode tramp \
51
	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
	ses.dvi \
	sieve.dvi \
	smtpmail.dvi \
	speedbar.dvi \
98
	srecode.dvi \
99 100 101 102 103 104 105
	tramp.dvi \
	url.dvi \
	vip.dvi \
	viper.dvi \
	widget.dvi \
	woman.dvi

106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
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 \
123
	ert.pdf \
124 125 126 127 128 129
	eshell.pdf \
	eudc.pdf \
	faq.pdf \
	flymake.pdf \
	forms.pdf \
	gnus.pdf \
130
	emacs-gnutls.pdf \
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
	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 \
151
	srecode.pdf \
152 153 154 155 156 157
	tramp.pdf \
	url.pdf \
	vip.pdf \
	viper.pdf \
	widget.pdf \
	woman.pdf
158

159 160
HTML_TARGETS = emacs-faq.html

161
TEXI2DVI = texi2dvi
162
TEXI2PDF = texi2pdf
Glenn Morris's avatar
Glenn Morris committed
163

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

167
mkinfodir = @${MKDIR_P} ${buildinfodir}
168

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

173 174 175
# Default.
info: $(INFO_TARGETS)

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

182 183 184 185
# 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
186 187
dvi: $(DVI_TARGETS)

188
pdf: $(PDF_TARGETS)
189

190 191
# 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
192 193
# In a distribution of Emacs, the Info files should be up to date.

194 195
# Note: "<" is not portable in ordinary make rules.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

376 377
efaq : $(buildinfodir)/efaq$(INFO_EXT)
$(buildinfodir)/efaq$(INFO_EXT): ${srcdir}/faq.texi $(emacsdir)/emacsver.texi
378
	$(mkinfodir)
379
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/faq.texi
380
faq.dvi: ${srcdir}/faq.texi $(emacsdir)/emacsver.texi
381
	$(ENVADD) $(TEXI2DVI) ${srcdir}/faq.texi
382
faq.pdf: ${srcdir}/faq.texi $(emacsdir)/emacsver.texi
383
	$(ENVADD) $(TEXI2PDF) ${srcdir}/faq.texi
384 385 386
## 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
387
	$(MAKEINFO) $(MAKEINFO_OPTS) --no-split \
388
	  --css-ref='/layout.css' --html -o $@ ${srcdir}/faq.texi
389 390 391
	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
392
	$(MAKEINFO) $(MAKEINFO_OPTS) --plaintext -o $@ ${srcdir}/faq.texi
393

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

611 612 613 614 615 616 617 618 619
srecode : $(buildinfodir)/srecode$(INFO_EXT)
$(buildinfodir)/srecode$(INFO_EXT): ${srcdir}/srecode.texi
	$(mkinfodir)
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/srecode.texi
srecode.dvi: ${srcdir}/srecode.texi
	$(ENVADD) $(TEXI2DVI) ${srcdir}/srecode.texi
srecode.pdf: ${srcdir}/srecode.texi
	$(ENVADD) $(TEXI2PDF) ${srcdir}/srecode.texi

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

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

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

647