Makefile.in 23.4 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 27
# subdirectory of the source tree.  This is
# set by the configure script's `--srcdir' option.
srcdir=@srcdir@

# Tell make where to find source files; this is needed for the makefiles.
28 29 30
# Note the other doc Makefiles do not use VPATH anymore, instead
# they set infodir to an absolute path.  Not doing that here in
# case INFO_TARGETS gets too long for some feeble shells.
31
# (cf src/Makefile.in's passing of $lisp to make-docfile)
Glenn Morris's avatar
Glenn Morris committed
32 33
VPATH=@srcdir@

34 35 36
## Where the output files go.
## Note that the setfilename command in the .texi files assumes this.
infodir=../../info
37
## Directory with emacsver.texi.
38
## Currently only used by efaq and calc.
39
emacsdir = $(srcdir)/../emacs
Glenn Morris's avatar
Glenn Morris committed
40

41 42
MKDIR_P = @MKDIR_P@

43 44 45 46
INFO_EXT=@INFO_EXT@
# Options used only when making info output.
INFO_OPTS=@INFO_OPTS@

Glenn Morris's avatar
Glenn Morris committed
47 48
# The makeinfo program is part of the Texinfo distribution.
# Use --force so that it generates output even if there are errors.
49 50
MAKEINFO = @MAKEINFO@
MAKEINFO_OPTS = --force -I$(emacsdir)
51 52

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

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

156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
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 \
173
	ert.pdf \
174 175 176 177 178 179
	eshell.pdf \
	eudc.pdf \
	faq.pdf \
	flymake.pdf \
	forms.pdf \
	gnus.pdf \
180
	emacs-gnutls.pdf \
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206
	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
207

208 209
HTML_TARGETS = emacs-faq.html

210
TEXI2DVI = texi2dvi
211
TEXI2PDF = texi2pdf
Glenn Morris's avatar
Glenn Morris committed
212

213 214
ENVADD = TEXINPUTS="$(srcdir):$(emacsdir):$(TEXINPUTS)" \
         MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
Glenn Morris's avatar
Glenn Morris committed
215

216
mkinfodir = @${MKDIR_P} ${srcdir}/${infodir}
217

218
.PHONY: info dvi pdf echo-info
219 220
## Prevent implicit rule triggering for foo.info.
.SUFFIXES:
221

222 223 224
# Default.
info: $(INFO_TARGETS)

225 226 227
## Used by top-level Makefile.
echo-info:
	@echo $(INFO_TARGETS) | sed 's|[^ ]*/||g'
Glenn Morris's avatar
Glenn Morris committed
228

229 230 231 232
# 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
233 234
dvi: $(DVI_TARGETS)

235
pdf: $(PDF_TARGETS)
236

Glenn Morris's avatar
Glenn Morris committed
237 238 239 240 241
# 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.
# In a distribution of Emacs, the Info files should be up to date.

242 243
# Note: "<" is not portable in ordinary make rules.

244
## "short" target names for convenience, to just rebuild one manual.
245 246
ada-mode : $(infodir)/ada-mode$(INFO_EXT)
$(infodir)/ada-mode$(INFO_EXT): ada-mode.texi
247
	$(mkinfodir)
248 249
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ada-mode.texi
250
ada-mode.dvi: ${srcdir}/ada-mode.texi
251
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ada-mode.texi
252
ada-mode.pdf: ${srcdir}/ada-mode.texi
253
	$(ENVADD) $(TEXI2PDF) ${srcdir}/ada-mode.texi
Glenn Morris's avatar
Glenn Morris committed
254

255 256
auth : $(infodir)/auth$(INFO_EXT)
$(infodir)/auth$(INFO_EXT): auth.texi
257
	$(mkinfodir)
258 259
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ auth.texi
260
auth.dvi: ${srcdir}/auth.texi
261
	$(ENVADD) $(TEXI2DVI) ${srcdir}/auth.texi
262
auth.pdf: ${srcdir}/auth.texi
263
	$(ENVADD) $(TEXI2PDF) ${srcdir}/auth.texi
264

265 266
autotype : $(infodir)/autotype$(INFO_EXT)
$(infodir)/autotype$(INFO_EXT): autotype.texi
267
	$(mkinfodir)
268 269
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ autotype.texi
270
autotype.dvi: ${srcdir}/autotype.texi
271
	$(ENVADD) $(TEXI2DVI) ${srcdir}/autotype.texi
272
autotype.pdf: ${srcdir}/autotype.texi
273
	$(ENVADD) $(TEXI2PDF) ${srcdir}/autotype.texi
Glenn Morris's avatar
Glenn Morris committed
274

275 276
calc : $(infodir)/calc$(INFO_EXT)
$(infodir)/calc$(INFO_EXT): calc.texi $(emacsdir)/emacsver.texi
277
	$(mkinfodir)
278 279
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ calc.texi
280
calc.dvi: ${srcdir}/calc.texi $(emacsdir)/emacsver.texi
281
	$(ENVADD) $(TEXI2DVI) ${srcdir}/calc.texi
282
calc.pdf: ${srcdir}/calc.texi $(emacsdir)/emacsver.texi
283
	$(ENVADD) $(TEXI2PDF) ${srcdir}/calc.texi
Glenn Morris's avatar
Glenn Morris committed
284

285 286
ccmode : $(infodir)/ccmode$(INFO_EXT)
$(infodir)/ccmode$(INFO_EXT): cc-mode.texi
287
	$(mkinfodir)
288 289
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ cc-mode.texi
290
cc-mode.dvi: ${srcdir}/cc-mode.texi
291
	$(ENVADD) $(TEXI2DVI) ${srcdir}/cc-mode.texi
292
cc-mode.pdf: ${srcdir}/cc-mode.texi
293
	$(ENVADD) $(TEXI2PDF) ${srcdir}/cc-mode.texi
Glenn Morris's avatar
Glenn Morris committed
294

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

305 306
dbus : $(infodir)/dbus$(INFO_EXT)
$(infodir)/dbus$(INFO_EXT): dbus.texi
307
	$(mkinfodir)
308 309
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ dbus.texi
310
dbus.dvi: ${srcdir}/dbus.texi
311
	$(ENVADD) $(TEXI2DVI) ${srcdir}/dbus.texi
312
dbus.pdf: ${srcdir}/dbus.texi
313
	$(ENVADD) $(TEXI2PDF) ${srcdir}/dbus.texi
314

315 316
dired-x : $(infodir)/dired-x$(INFO_EXT)
$(infodir)/dired-x$(INFO_EXT): dired-x.texi $(emacsdir)/emacsver.texi
317
	$(mkinfodir)
318 319
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ dired-x.texi
320
dired-x.dvi: ${srcdir}/dired-x.texi $(emacsdir)/emacsver.texi
321
	$(ENVADD) $(TEXI2DVI) ${srcdir}/dired-x.texi
322
dired-x.pdf: ${srcdir}/dired-x.texi $(emacsdir)/emacsver.texi
323
	$(ENVADD) $(TEXI2PDF) ${srcdir}/dired-x.texi
Glenn Morris's avatar
Glenn Morris committed
324

325 326
ebrowse : $(infodir)/ebrowse$(INFO_EXT)
$(infodir)/ebrowse$(INFO_EXT): ebrowse.texi
327
	$(mkinfodir)
328 329
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ebrowse.texi
330
ebrowse.dvi: ${srcdir}/ebrowse.texi
331
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ebrowse.texi
332
ebrowse.pdf: ${srcdir}/ebrowse.texi
333
	$(ENVADD) $(TEXI2PDF) ${srcdir}/ebrowse.texi
334

335 336
ede : $(infodir)/ede$(INFO_EXT)
$(infodir)/ede$(INFO_EXT): ede.texi
337
	$(mkinfodir)
338 339
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ede.texi
340
ede.dvi: ${srcdir}/ede.texi
341
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ede.texi
342
ede.pdf: ${srcdir}/ede.texi
343
	$(ENVADD) $(TEXI2PDF) ${srcdir}/ede.texi
Chong Yidong's avatar
Chong Yidong committed
344

345 346
ediff : $(infodir)/ediff$(INFO_EXT)
$(infodir)/ediff$(INFO_EXT): ediff.texi
347
	$(mkinfodir)
348 349
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ediff.texi
350
ediff.dvi: ${srcdir}/ediff.texi
351
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ediff.texi
352
ediff.pdf: ${srcdir}/ediff.texi
353
	$(ENVADD) $(TEXI2PDF) ${srcdir}/ediff.texi
354

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

365 366
eieio : $(infodir)/eieio$(INFO_EXT)
$(infodir)/eieio$(INFO_EXT): eieio.texi
367
	$(mkinfodir)
368 369
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ eieio.texi
370
eieio.dvi: ${srcdir}/eieio.texi
371
	$(ENVADD) $(TEXI2DVI) ${srcdir}/eieio.texi
372
eieio.pdf: ${srcdir}/eieio.texi
373
	$(ENVADD) $(TEXI2PDF) ${srcdir}/eieio.texi
Chong Yidong's avatar
Chong Yidong committed
374

375 376
emacs-gnutls : $(infodir)/emacs-gnutls$(INFO_EXT)
$(infodir)/emacs-gnutls$(INFO_EXT): emacs-gnutls.texi
377
	$(mkinfodir)
378 379
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ emacs-gnutls.texi
380
emacs-gnutls.dvi: ${srcdir}/emacs-gnutls.texi
381
	$(ENVADD) $(TEXI2DVI) ${srcdir}/emacs-gnutls.texi
382
emacs-gnutls.pdf: ${srcdir}/emacs-gnutls.texi
383
	$(ENVADD) $(TEXI2PDF) ${srcdir}/emacs-gnutls.texi
384

385 386
emacs-mime : $(infodir)/emacs-mime$(INFO_EXT)
$(infodir)/emacs-mime$(INFO_EXT): emacs-mime.texi
387
	$(mkinfodir)
388 389
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) --enable-encoding -o $@ emacs-mime.texi
390
emacs-mime.dvi: ${srcdir}/emacs-mime.texi
391
	$(ENVADD) $(TEXI2DVI) ${srcdir}/emacs-mime.texi
392
emacs-mime.pdf: ${srcdir}/emacs-mime.texi
393
	$(ENVADD) $(TEXI2PDF) ${srcdir}/emacs-mime.texi
394

395 396
epa : $(infodir)/epa$(INFO_EXT)
$(infodir)/epa$(INFO_EXT): epa.texi
397
	$(mkinfodir)
398 399
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ epa.texi
400
epa.dvi: ${srcdir}/epa.texi
401
	$(ENVADD) $(TEXI2DVI) ${srcdir}/epa.texi
402
epa.pdf: ${srcdir}/epa.texi
403
	$(ENVADD) $(TEXI2PDF) ${srcdir}/epa.texi
Michael Olson's avatar
Michael Olson committed
404

405 406
erc : $(infodir)/erc$(INFO_EXT)
$(infodir)/erc$(INFO_EXT): erc.texi
407
	$(mkinfodir)
408 409
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ erc.texi
410
erc.dvi: ${srcdir}/erc.texi
411
	$(ENVADD) $(TEXI2DVI) ${srcdir}/erc.texi
412
erc.pdf: ${srcdir}/erc.texi
413
	$(ENVADD) $(TEXI2PDF) ${srcdir}/erc.texi
414

415 416
ert : $(infodir)/ert$(INFO_EXT)
$(infodir)/ert$(INFO_EXT): ert.texi
417
	$(mkinfodir)
418 419
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ert.texi
420
ert.dvi: ${srcdir}/ert.texi
421
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ert.texi
422
ert.pdf: ${srcdir}/ert.texi
423
	$(ENVADD) $(TEXI2PDF) ${srcdir}/ert.texi
424

425 426
eshell : $(infodir)/eshell$(INFO_EXT)
$(infodir)/eshell$(INFO_EXT): eshell.texi
427
	$(mkinfodir)
428 429
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ eshell.texi
430
eshell.dvi: ${srcdir}/eshell.texi
431
	$(ENVADD) $(TEXI2DVI) ${srcdir}/eshell.texi
432
eshell.pdf: ${srcdir}/eshell.texi
433
	$(ENVADD) $(TEXI2PDF) ${srcdir}/eshell.texi
Glenn Morris's avatar
Glenn Morris committed
434

435 436
eudc : $(infodir)/eudc$(INFO_EXT)
$(infodir)/eudc$(INFO_EXT): eudc.texi
437
	$(mkinfodir)
438 439
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ eudc.texi
440
eudc.dvi: ${srcdir}/eudc.texi
441
	$(ENVADD) $(TEXI2DVI) ${srcdir}/eudc.texi
442
eudc.pdf: ${srcdir}/eudc.texi
443
	$(ENVADD) $(TEXI2PDF) ${srcdir}/eudc.texi
444

445 446
efaq : $(infodir)/efaq$(INFO_EXT)
$(infodir)/efaq$(INFO_EXT): faq.texi $(emacsdir)/emacsver.texi
447
	$(mkinfodir)
448 449
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ faq.texi
450
faq.dvi: ${srcdir}/faq.texi $(emacsdir)/emacsver.texi
451
	$(ENVADD) $(TEXI2DVI) ${srcdir}/faq.texi
452
faq.pdf: ${srcdir}/faq.texi $(emacsdir)/emacsver.texi
453
	$(ENVADD) $(TEXI2PDF) ${srcdir}/faq.texi
454 455 456
## 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
457
	$(MAKEINFO) $(MAKEINFO_OPTS) --no-split \
458
	  --css-ref='/layout.css' --html -o $@ ${srcdir}/faq.texi
459 460 461
	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
462
	$(MAKEINFO) $(MAKEINFO_OPTS) --plaintext -o $@ ${srcdir}/faq.texi
463

464 465
flymake : $(infodir)/flymake$(INFO_EXT)
$(infodir)/flymake$(INFO_EXT): flymake.texi
466
	$(mkinfodir)
467 468
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ flymake.texi
469
flymake.dvi: ${srcdir}/flymake.texi
470
	$(ENVADD) $(TEXI2DVI) ${srcdir}/flymake.texi
471
flymake.pdf: ${srcdir}/flymake.texi
472
	$(ENVADD) $(TEXI2PDF) ${srcdir}/flymake.texi
473

474 475
forms : $(infodir)/forms$(INFO_EXT)
$(infodir)/forms$(INFO_EXT): forms.texi
476
	$(mkinfodir)
477 478
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ forms.texi
479
forms.dvi: ${srcdir}/forms.texi
480
	$(ENVADD) $(TEXI2DVI) ${srcdir}/forms.texi
481
forms.pdf: ${srcdir}/forms.texi
482
	$(ENVADD) $(TEXI2PDF) ${srcdir}/forms.texi
Glenn Morris's avatar
Glenn Morris committed
483 484

# gnus/message/emacs-mime/sieve/pgg are part of Gnus:
485 486
gnus : $(infodir)/gnus$(INFO_EXT)
$(infodir)/gnus$(INFO_EXT): gnus.texi gnus-faq.texi
487
	$(mkinfodir)
488 489
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ gnus.texi
490
gnus.dvi: ${srcdir}/gnus.texi gnus-faq.texi
491
	sed -e '/@iflatex/,/@end iflatex/d' ${srcdir}/gnus.texi > gnustmp.texi
Glenn Morris's avatar
Glenn Morris committed
492 493 494
	$(ENVADD) $(TEXI2DVI) gnustmp.texi
	cp gnustmp.dvi $*.dvi
	rm gnustmp.*
495
gnus.pdf: ${srcdir}/gnus.texi gnus-faq.texi
496
	sed -e '/@iflatex/,/@end iflatex/d' ${srcdir}/gnus.texi > gnustmp.texi
497 498 499
	$(ENVADD) $(TEXI2PDF) gnustmp.texi
	cp gnustmp.pdf $@
	rm gnustmp.*
Glenn Morris's avatar
Glenn Morris committed
500

501 502 503
# NB this one needs --no-split even without a .info extension.
idlwave : $(infodir)/idlwave$(INFO_EXT)
$(infodir)/idlwave$(INFO_EXT): idlwave.texi
504
	$(mkinfodir)
505 506
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ idlwave.texi
507
idlwave.dvi: ${srcdir}/idlwave.texi
508
	$(ENVADD) $(TEXI2DVI) ${srcdir}/idlwave.texi
509
idlwave.pdf: ${srcdir}/idlwave.texi
510
	$(ENVADD) $(TEXI2PDF) ${srcdir}/idlwave.texi
511

512
# NB this one needs --no-split even without a .info extension.
513 514
# Avoid name clash with overall "info" target.
info.info : $(infodir)/info$(INFO_EXT)
515
$(infodir)/info$(INFO_EXT): info.texi
516
	$(mkinfodir)
517 518
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ info.texi
519
info.dvi: ${srcdir}/info.texi
520
	$(ENVADD) $(TEXI2DVI) ${srcdir}/info.texi
521
info.pdf: ${srcdir}/info.texi
522
	$(ENVADD) $(TEXI2PDF) ${srcdir}/info.texi
523

524 525
mairix-el : $(infodir)/mairix-el$(INFO_EXT)
$(infodir)/mairix-el$(INFO_EXT): mairix-el.texi
526
	$(mkinfodir)
527 528
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ mairix-el.texi
529
mairix-el.dvi: ${srcdir}/mairix-el.texi
530
	$(ENVADD) $(TEXI2DVI) ${srcdir}/mairix-el.texi
531
mairix-el.pdf: ${srcdir}/mairix-el.texi
532
	$(ENVADD) $(TEXI2PDF) ${srcdir}/mairix-el.texi
Chong Yidong's avatar
Chong Yidong committed
533

534 535
message : $(infodir)/message$(INFO_EXT)
$(infodir)/message$(INFO_EXT): message.texi
536
	$(mkinfodir)
537 538
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ message.texi
539
message.dvi: ${srcdir}/message.texi
540
	$(ENVADD) $(TEXI2DVI) ${srcdir}/message.texi
541
message.pdf: ${srcdir}/message.texi
542
	$(ENVADD) $(TEXI2PDF) ${srcdir}/message.texi
Glenn Morris's avatar
Glenn Morris committed
543

544 545
mh-e : $(infodir)/mh-e$(INFO_EXT)
$(infodir)/mh-e$(INFO_EXT): mh-e.texi
546
	$(mkinfodir)
547 548
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ mh-e.texi
549
mh-e.dvi: ${srcdir}/mh-e.texi
550
	$(ENVADD) $(TEXI2DVI) ${srcdir}/mh-e.texi
551
mh-e.pdf: ${srcdir}/mh-e.texi
552
	$(ENVADD) $(TEXI2PDF) ${srcdir}/mh-e.texi
Glenn Morris's avatar
Glenn Morris committed
553

554 555
newsticker : $(infodir)/newsticker$(INFO_EXT)
$(infodir)/newsticker$(INFO_EXT): newsticker.texi
556
	$(mkinfodir)
557 558
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ newsticker.texi
559
newsticker.dvi: ${srcdir}/newsticker.texi
560
	$(ENVADD) $(TEXI2DVI) ${srcdir}/newsticker.texi
561
newsticker.pdf: ${srcdir}/newsticker.texi
562
	$(ENVADD) $(TEXI2PDF) ${srcdir}/newsticker.texi
563

564 565
nxml-mode : $(infodir)/nxml-mode$(INFO_EXT)
$(infodir)/nxml-mode$(INFO_EXT): nxml-mode.texi
566
	$(mkinfodir)
567 568
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ nxml-mode.texi
569
nxml-mode.dvi: ${srcdir}/nxml-mode.texi
570
	$(ENVADD) $(TEXI2DVI) ${srcdir}/nxml-mode.texi
571
nxml-mode.pdf: ${srcdir}/nxml-mode.texi
572
	$(ENVADD) $(TEXI2PDF) ${srcdir}/nxml-mode.texi
573

574 575
org : $(infodir)/org$(INFO_EXT)
$(infodir)/org$(INFO_EXT): org.texi
576
	$(mkinfodir)
577 578
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ org.texi
579
org.dvi: ${srcdir}/org.texi
580
	$(ENVADD) $(TEXI2DVI) ${srcdir}/org.texi
581
org.pdf: ${srcdir}/org.texi
582
	$(ENVADD) $(TEXI2PDF) ${srcdir}/org.texi
583

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

594 595
pgg : $(infodir)/pgg$(INFO_EXT)
$(infodir)/pgg$(INFO_EXT): pgg.texi
596
	$(mkinfodir)
597 598
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ pgg.texi
599
pgg.dvi: ${srcdir}/pgg.texi
600
	$(ENVADD) $(TEXI2DVI) ${srcdir}/pgg.texi
601
pgg.pdf: ${srcdir}/pgg.texi
602
	$(ENVADD) $(TEXI2PDF) ${srcdir}/pgg.texi
Glenn Morris's avatar
Glenn Morris committed
603

604 605
rcirc : $(infodir)/rcirc$(INFO_EXT)
$(infodir)/rcirc$(INFO_EXT): rcirc.texi
606
	$(mkinfodir)
607 608
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ rcirc.texi
609
rcirc.dvi: ${srcdir}/rcirc.texi
610
	$(ENVADD) $(TEXI2DVI) ${srcdir}/rcirc.texi
611
rcirc.pdf: ${srcdir}/rcirc.texi
612
	$(ENVADD) $(TEXI2PDF) ${srcdir}/rcirc.texi
Glenn Morris's avatar
Glenn Morris committed
613

614 615
reftex : $(infodir)/reftex$(INFO_EXT)
$(infodir)/reftex$(INFO_EXT): reftex.texi
616
	$(mkinfodir)
617 618
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ reftex.texi
619
reftex.dvi: ${srcdir}/reftex.texi
620
	$(ENVADD) $(TEXI2DVI) ${srcdir}/reftex.texi
621
reftex.pdf: ${srcdir}/reftex.texi
622
	$(ENVADD) $(TEXI2PDF) ${srcdir}/reftex.texi
Glenn Morris's avatar
Glenn Morris committed
623

624 625
remember : $(infodir)/remember$(INFO_EXT)
$(infodir)/remember$(INFO_EXT): remember.texi
626
	$(mkinfodir)
627 628
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ remember.texi
629
remember.dvi: ${srcdir}/remember.texi
630
	$(ENVADD) $(TEXI2DVI) ${srcdir}/remember.texi
631
remember.pdf: ${srcdir}/remember.texi
632
	$(ENVADD) $(TEXI2PDF) ${srcdir}/remember.texi
633

634 635
sasl : $(infodir)/sasl$(INFO_EXT)
$(infodir)/sasl$(INFO_EXT): sasl.texi
636
	$(mkinfodir)
637 638
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ sasl.texi
639
sasl.dvi: ${srcdir}/sasl.texi
640
	$(ENVADD) $(TEXI2DVI) ${srcdir}/sasl.texi
641
sasl.pdf: ${srcdir}/sasl.texi
642
	$(ENVADD) $(TEXI2PDF) ${srcdir}/sasl.texi
643

644 645
sc : $(infodir)/sc$(INFO_EXT)
$(infodir)/sc$(INFO_EXT): sc.texi
646
	$(mkinfodir)
647 648
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ sc.texi
649
sc.dvi: ${srcdir}/sc.texi
650
	$(ENVADD) $(TEXI2DVI) ${srcdir}/sc.texi
651
sc.pdf: ${srcdir}/sc.texi
652
	$(ENVADD) $(TEXI2PDF) ${srcdir}/sc.texi
Glenn Morris's avatar
Glenn Morris committed
653

654 655
semantic : $(infodir)/semantic$(INFO_EXT)
$(infodir)/semantic$(INFO_EXT): semantic.texi sem-user.texi
656
	$(mkinfodir)
657 658
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ semantic.texi
659
semantic.dvi: ${srcdir}/semantic.texi sem-user.texi
660
	$(ENVADD) $(TEXI2DVI) ${srcdir}/semantic.texi
661
semantic.pdf: ${srcdir}/semantic.texi sem-user.texi
662
	$(ENVADD) $(TEXI2PDF) ${srcdir}/semantic.texi
663

664 665
ses : $(infodir)/ses$(INFO_EXT)
$(infodir)/ses$(INFO_EXT): ses.texi
666
	$(mkinfodir)
667 668
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ses.texi
669
ses.dvi: ${srcdir}/ses.texi
670
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ses.texi
671
ses.pdf: ${srcdir}/ses.texi
672
	$(ENVADD) $(TEXI2PDF) ${srcdir}/ses.texi
Glenn Morris's avatar
Glenn Morris committed
673

674 675
sieve : $(infodir)/sieve$(INFO_EXT)
$(infodir)/sieve$(INFO_EXT): sieve.texi
676
	$(mkinfodir)
677 678
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ sieve.texi
679
sieve.dvi: ${srcdir}/sieve.texi
680
	$(ENVADD) $(TEXI2DVI) ${srcdir}/sieve.texi
681
sieve.pdf: ${srcdir}/sieve.texi
682
	$(ENVADD) $(TEXI2PDF) ${srcdir}/sieve.texi
Glenn Morris's avatar
Glenn Morris committed
683

684 685
smtpmail : $(infodir)/smtpmail$(INFO_EXT)
$(infodir)/smtpmail$(INFO_EXT): smtpmail.texi
686
	$(mkinfodir)
687 688
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ smtpmail.texi
689
smtpmail.dvi: ${srcdir}/smtpmail.texi
690
	$(ENVADD) $(TEXI2DVI) ${srcdir}/smtpmail.texi
691
smtpmail.pdf: ${srcdir}/smtpmail.texi
692
	$(ENVADD) $(TEXI2PDF) ${srcdir}/smtpmail.texi
Glenn Morris's avatar
Glenn Morris committed
693

694 695
speedbar : $(infodir)/speedbar$(INFO_EXT)
$(infodir)/speedbar$(INFO_EXT): speedbar.texi
696
	$(mkinfodir)
697 698
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ speedbar.texi
699
speedbar.dvi: ${srcdir}/speedbar.texi
700
	$(ENVADD) $(TEXI2DVI) ${srcdir}/speedbar.texi
701
speedbar.pdf: ${srcdir}/speedbar.texi
702
	$(ENVADD) $(TEXI2PDF) ${srcdir}/speedbar.texi
Glenn Morris's avatar
Glenn Morris committed
703

704 705
tramp : $(infodir)/tramp$(INFO_EXT)
$(infodir)/tramp$(INFO_EXT): tramp.texi trampver.texi
706
	$(mkinfodir)
707 708
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ -D emacs tramp.texi
709
tramp.dvi: ${srcdir}/tramp.texi trampver.texi
710
	$(ENVADD) $(TEXI2DVI) ${srcdir}/tramp.texi
711
tramp.pdf: ${srcdir}/tramp.texi trampver.texi
712
	$(ENVADD) $(TEXI2PDF) ${srcdir}/tramp.texi
Glenn Morris's avatar
Glenn Morris committed
713

714 715
url : $(infodir)/url$(INFO_EXT)
$(infodir)/url$(INFO_EXT): url.texi
716
	$(mkinfodir)
717 718
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ url.texi
719
url.dvi: ${srcdir}/url.texi
720
	$(ENVADD) $(TEXI2DVI) ${srcdir}/url.texi
721
url.pdf: ${srcdir}/url.texi
722
	$(ENVADD) $(TEXI2PDF) ${srcdir}/url.texi
Glenn Morris's avatar
Glenn Morris committed
723

724 725
vip : $(infodir)/vip$(INFO_EXT)
$(infodir)/vip$(INFO_EXT): vip.texi
726
	$(mkinfodir)