Makefile.in 23.3 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 43 44
INFO_EXT=@INFO_EXT@
# Options used only when making info output.
INFO_OPTS=@INFO_OPTS@

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

INFO_TARGETS = \
51 52 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
	$(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)
101 102 103

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

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

206 207
HTML_TARGETS = emacs-faq.html

208
TEXI2DVI = texi2dvi
209
TEXI2PDF = texi2pdf
Glenn Morris's avatar
Glenn Morris committed
210

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

214
mkinfodir = @cd ${srcdir}; test -d ${infodir} || mkdir ${infodir} || test -d ${infodir}
215

216 217 218 219 220
.PHONY: info dvi pdf echo-info

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

222
info: $(INFO_TARGETS)
223

224 225 226 227
# 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
228 229
dvi: $(DVI_TARGETS)

230
pdf: $(PDF_TARGETS)
231

Glenn Morris's avatar
Glenn Morris committed
232 233 234 235 236
# 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.

237 238
# Note: "<" is not portable in ordinary make rules.

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

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

260 261
autotype : $(infodir)/autotype$(INFO_EXT)
$(infodir)/autotype$(INFO_EXT): autotype.texi
262
	$(mkinfodir)
263 264
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ autotype.texi
265
autotype.dvi: ${srcdir}/autotype.texi
266
	$(ENVADD) $(TEXI2DVI) ${srcdir}/autotype.texi
267
autotype.pdf: ${srcdir}/autotype.texi
268
	$(ENVADD) $(TEXI2PDF) ${srcdir}/autotype.texi
Glenn Morris's avatar
Glenn Morris committed
269

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

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

290 291
cl : $(infodir)/cl$(INFO_EXT)
$(infodir)/cl$(INFO_EXT): cl.texi
292
	$(mkinfodir)
293 294
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ cl.texi
295
cl.dvi: ${srcdir}/cl.texi
296
	$(ENVADD) $(TEXI2DVI) ${srcdir}/cl.texi
297
cl.pdf: ${srcdir}/cl.texi
298
	$(ENVADD) $(TEXI2PDF) ${srcdir}/cl.texi
Glenn Morris's avatar
Glenn Morris committed
299

300 301
dbus : $(infodir)/dbus$(INFO_EXT)
$(infodir)/dbus$(INFO_EXT): dbus.texi
302
	$(mkinfodir)
303 304
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ dbus.texi
305
dbus.dvi: ${srcdir}/dbus.texi
306
	$(ENVADD) $(TEXI2DVI) ${srcdir}/dbus.texi
307
dbus.pdf: ${srcdir}/dbus.texi
308
	$(ENVADD) $(TEXI2PDF) ${srcdir}/dbus.texi
309

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

320 321
ebrowse : $(infodir)/ebrowse$(INFO_EXT)
$(infodir)/ebrowse$(INFO_EXT): ebrowse.texi
322
	$(mkinfodir)
323 324
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ebrowse.texi
325
ebrowse.dvi: ${srcdir}/ebrowse.texi
326
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ebrowse.texi
327
ebrowse.pdf: ${srcdir}/ebrowse.texi
328
	$(ENVADD) $(TEXI2PDF) ${srcdir}/ebrowse.texi
329

330 331
ede : $(infodir)/ede$(INFO_EXT)
$(infodir)/ede$(INFO_EXT): ede.texi
332
	$(mkinfodir)
333 334
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ede.texi
335
ede.dvi: ${srcdir}/ede.texi
336
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ede.texi
337
ede.pdf: ${srcdir}/ede.texi
338
	$(ENVADD) $(TEXI2PDF) ${srcdir}/ede.texi
Chong Yidong's avatar
Chong Yidong committed
339

340 341
ediff : $(infodir)/ediff$(INFO_EXT)
$(infodir)/ediff$(INFO_EXT): ediff.texi
342
	$(mkinfodir)
343 344
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ediff.texi
345
ediff.dvi: ${srcdir}/ediff.texi
346
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ediff.texi
347
ediff.pdf: ${srcdir}/ediff.texi
348
	$(ENVADD) $(TEXI2PDF) ${srcdir}/ediff.texi
349

350 351
edt : $(infodir)/edt$(INFO_EXT)
$(infodir)/edt$(INFO_EXT): edt.texi
352
	$(mkinfodir)
353 354
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ edt.texi
355
edt.dvi: ${srcdir}/edt.texi
356
	$(ENVADD) $(TEXI2DVI) ${srcdir}/edt.texi
357
edt.pdf: ${srcdir}/edt.texi
358
	$(ENVADD) $(TEXI2PDF) ${srcdir}/edt.texi
Glenn Morris's avatar
Glenn Morris committed
359

360 361
eieio : $(infodir)/eieio$(INFO_EXT)
$(infodir)/eieio$(INFO_EXT): eieio.texi
362
	$(mkinfodir)
363 364
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ eieio.texi
365
eieio.dvi: ${srcdir}/eieio.texi
366
	$(ENVADD) $(TEXI2DVI) ${srcdir}/eieio.texi
367
eieio.pdf: ${srcdir}/eieio.texi
368
	$(ENVADD) $(TEXI2PDF) ${srcdir}/eieio.texi
Chong Yidong's avatar
Chong Yidong committed
369

370 371
emacs-gnutls : $(infodir)/emacs-gnutls$(INFO_EXT)
$(infodir)/emacs-gnutls$(INFO_EXT): emacs-gnutls.texi
372
	$(mkinfodir)
373 374
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ emacs-gnutls.texi
375
emacs-gnutls.dvi: ${srcdir}/emacs-gnutls.texi
376
	$(ENVADD) $(TEXI2DVI) ${srcdir}/emacs-gnutls.texi
377
emacs-gnutls.pdf: ${srcdir}/emacs-gnutls.texi
378
	$(ENVADD) $(TEXI2PDF) ${srcdir}/emacs-gnutls.texi
379

380 381
emacs-mime : $(infodir)/emacs-mime$(INFO_EXT)
$(infodir)/emacs-mime$(INFO_EXT): emacs-mime.texi
382
	$(mkinfodir)
383 384
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) --enable-encoding -o $@ emacs-mime.texi
385
emacs-mime.dvi: ${srcdir}/emacs-mime.texi
386
	$(ENVADD) $(TEXI2DVI) ${srcdir}/emacs-mime.texi
387
emacs-mime.pdf: ${srcdir}/emacs-mime.texi
388
	$(ENVADD) $(TEXI2PDF) ${srcdir}/emacs-mime.texi
389

390 391
epa : $(infodir)/epa$(INFO_EXT)
$(infodir)/epa$(INFO_EXT): epa.texi
392
	$(mkinfodir)
393 394
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ epa.texi
395
epa.dvi: ${srcdir}/epa.texi
396
	$(ENVADD) $(TEXI2DVI) ${srcdir}/epa.texi
397
epa.pdf: ${srcdir}/epa.texi
398
	$(ENVADD) $(TEXI2PDF) ${srcdir}/epa.texi
Michael Olson's avatar
Michael Olson committed
399

400 401
erc : $(infodir)/erc$(INFO_EXT)
$(infodir)/erc$(INFO_EXT): erc.texi
402
	$(mkinfodir)
403 404
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ erc.texi
405
erc.dvi: ${srcdir}/erc.texi
406
	$(ENVADD) $(TEXI2DVI) ${srcdir}/erc.texi
407
erc.pdf: ${srcdir}/erc.texi
408
	$(ENVADD) $(TEXI2PDF) ${srcdir}/erc.texi
409

410 411
ert : $(infodir)/ert$(INFO_EXT)
$(infodir)/ert$(INFO_EXT): ert.texi
412
	$(mkinfodir)
413 414
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ert.texi
415
ert.dvi: ${srcdir}/ert.texi
416
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ert.texi
417
ert.pdf: ${srcdir}/ert.texi
418
	$(ENVADD) $(TEXI2PDF) ${srcdir}/ert.texi
419

420 421
eshell : $(infodir)/eshell$(INFO_EXT)
$(infodir)/eshell$(INFO_EXT): eshell.texi
422
	$(mkinfodir)
423 424
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ eshell.texi
425
eshell.dvi: ${srcdir}/eshell.texi
426
	$(ENVADD) $(TEXI2DVI) ${srcdir}/eshell.texi
427
eshell.pdf: ${srcdir}/eshell.texi
428
	$(ENVADD) $(TEXI2PDF) ${srcdir}/eshell.texi
Glenn Morris's avatar
Glenn Morris committed
429

430 431
eudc : $(infodir)/eudc$(INFO_EXT)
$(infodir)/eudc$(INFO_EXT): eudc.texi
432
	$(mkinfodir)
433 434
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ eudc.texi
435
eudc.dvi: ${srcdir}/eudc.texi
436
	$(ENVADD) $(TEXI2DVI) ${srcdir}/eudc.texi
437
eudc.pdf: ${srcdir}/eudc.texi
438
	$(ENVADD) $(TEXI2PDF) ${srcdir}/eudc.texi
439

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

459 460
flymake : $(infodir)/flymake$(INFO_EXT)
$(infodir)/flymake$(INFO_EXT): flymake.texi
461
	$(mkinfodir)
462 463
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ flymake.texi
464
flymake.dvi: ${srcdir}/flymake.texi
465
	$(ENVADD) $(TEXI2DVI) ${srcdir}/flymake.texi
466
flymake.pdf: ${srcdir}/flymake.texi
467
	$(ENVADD) $(TEXI2PDF) ${srcdir}/flymake.texi
468

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

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

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

507 508 509
# NB this one needs --no-split even without a .info extension.
info : $(infodir)/info$(INFO_EXT)
$(infodir)/info$(INFO_EXT): info.texi
510
	$(mkinfodir)
511 512
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ info.texi
513
info.dvi: ${srcdir}/info.texi
514
	$(ENVADD) $(TEXI2DVI) ${srcdir}/info.texi
515
info.pdf: ${srcdir}/info.texi
516
	$(ENVADD) $(TEXI2PDF) ${srcdir}/info.texi
517

518 519
mairix-el : $(infodir)/mairix-el$(INFO_EXT)
$(infodir)/mairix-el$(INFO_EXT): mairix-el.texi
520
	$(mkinfodir)
521 522
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ mairix-el.texi
523
mairix-el.dvi: ${srcdir}/mairix-el.texi
524
	$(ENVADD) $(TEXI2DVI) ${srcdir}/mairix-el.texi
525
mairix-el.pdf: ${srcdir}/mairix-el.texi
526
	$(ENVADD) $(TEXI2PDF) ${srcdir}/mairix-el.texi
Chong Yidong's avatar
Chong Yidong committed
527

528 529
message : $(infodir)/message$(INFO_EXT)
$(infodir)/message$(INFO_EXT): message.texi
530
	$(mkinfodir)
531 532
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ message.texi
533
message.dvi: ${srcdir}/message.texi
534
	$(ENVADD) $(TEXI2DVI) ${srcdir}/message.texi
535
message.pdf: ${srcdir}/message.texi
536
	$(ENVADD) $(TEXI2PDF) ${srcdir}/message.texi
Glenn Morris's avatar
Glenn Morris committed
537

538 539
mh-e : $(infodir)/mh-e$(INFO_EXT)
$(infodir)/mh-e$(INFO_EXT): mh-e.texi
540
	$(mkinfodir)
541 542
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ mh-e.texi
543
mh-e.dvi: ${srcdir}/mh-e.texi
544
	$(ENVADD) $(TEXI2DVI) ${srcdir}/mh-e.texi
545
mh-e.pdf: ${srcdir}/mh-e.texi
546
	$(ENVADD) $(TEXI2PDF) ${srcdir}/mh-e.texi
Glenn Morris's avatar
Glenn Morris committed
547

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

558 559
nxml-mode : $(infodir)/nxml-mode$(INFO_EXT)
$(infodir)/nxml-mode$(INFO_EXT): nxml-mode.texi
560
	$(mkinfodir)
561 562
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ nxml-mode.texi
563
nxml-mode.dvi: ${srcdir}/nxml-mode.texi
564
	$(ENVADD) $(TEXI2DVI) ${srcdir}/nxml-mode.texi
565
nxml-mode.pdf: ${srcdir}/nxml-mode.texi
566
	$(ENVADD) $(TEXI2PDF) ${srcdir}/nxml-mode.texi
567

568 569
org : $(infodir)/org$(INFO_EXT)
$(infodir)/org$(INFO_EXT): org.texi
570
	$(mkinfodir)
571 572
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ org.texi
573
org.dvi: ${srcdir}/org.texi
574
	$(ENVADD) $(TEXI2DVI) ${srcdir}/org.texi
575
org.pdf: ${srcdir}/org.texi
576
	$(ENVADD) $(TEXI2PDF) ${srcdir}/org.texi
577

578 579
pcl-cvs : $(infodir)/pcl-cvs$(INFO_EXT)
$(infodir)/pcl-cvs$(INFO_EXT): pcl-cvs.texi
580
	$(mkinfodir)
581 582
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ pcl-cvs.texi
583
pcl-cvs.dvi: ${srcdir}/pcl-cvs.texi
584
	$(ENVADD) $(TEXI2DVI) ${srcdir}/pcl-cvs.texi
585
pcl-cvs.pdf: ${srcdir}/pcl-cvs.texi
586
	$(ENVADD) $(TEXI2PDF) ${srcdir}/pcl-cvs.texi
Glenn Morris's avatar
Glenn Morris committed
587

588 589
pgg : $(infodir)/pgg$(INFO_EXT)
$(infodir)/pgg$(INFO_EXT): pgg.texi
590
	$(mkinfodir)
591 592
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ pgg.texi
593
pgg.dvi: ${srcdir}/pgg.texi
594
	$(ENVADD) $(TEXI2DVI) ${srcdir}/pgg.texi
595
pgg.pdf: ${srcdir}/pgg.texi
596
	$(ENVADD) $(TEXI2PDF) ${srcdir}/pgg.texi
Glenn Morris's avatar
Glenn Morris committed
597

598 599
rcirc : $(infodir)/rcirc$(INFO_EXT)
$(infodir)/rcirc$(INFO_EXT): rcirc.texi
600
	$(mkinfodir)
601 602
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ rcirc.texi
603
rcirc.dvi: ${srcdir}/rcirc.texi
604
	$(ENVADD) $(TEXI2DVI) ${srcdir}/rcirc.texi
605
rcirc.pdf: ${srcdir}/rcirc.texi
606
	$(ENVADD) $(TEXI2PDF) ${srcdir}/rcirc.texi
Glenn Morris's avatar
Glenn Morris committed
607

608 609
reftex : $(infodir)/reftex$(INFO_EXT)
$(infodir)/reftex$(INFO_EXT): reftex.texi
610
	$(mkinfodir)
611 612
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ reftex.texi
613
reftex.dvi: ${srcdir}/reftex.texi
614
	$(ENVADD) $(TEXI2DVI) ${srcdir}/reftex.texi
615
reftex.pdf: ${srcdir}/reftex.texi
616
	$(ENVADD) $(TEXI2PDF) ${srcdir}/reftex.texi
Glenn Morris's avatar
Glenn Morris committed
617

618 619
remember : $(infodir)/remember$(INFO_EXT)
$(infodir)/remember$(INFO_EXT): remember.texi
620
	$(mkinfodir)
621 622
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ remember.texi
623
remember.dvi: ${srcdir}/remember.texi
624
	$(ENVADD) $(TEXI2DVI) ${srcdir}/remember.texi
625
remember.pdf: ${srcdir}/remember.texi
626
	$(ENVADD) $(TEXI2PDF) ${srcdir}/remember.texi
627

628 629
sasl : $(infodir)/sasl$(INFO_EXT)
$(infodir)/sasl$(INFO_EXT): sasl.texi
630
	$(mkinfodir)
631 632
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ sasl.texi
633
sasl.dvi: ${srcdir}/sasl.texi
634
	$(ENVADD) $(TEXI2DVI) ${srcdir}/sasl.texi
635
sasl.pdf: ${srcdir}/sasl.texi
636
	$(ENVADD) $(TEXI2PDF) ${srcdir}/sasl.texi
637

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

648 649
semantic : $(infodir)/semantic$(INFO_EXT)
$(infodir)/semantic$(INFO_EXT): semantic.texi sem-user.texi
650
	$(mkinfodir)
651 652
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ semantic.texi
653
semantic.dvi: ${srcdir}/semantic.texi sem-user.texi
654
	$(ENVADD) $(TEXI2DVI) ${srcdir}/semantic.texi
655
semantic.pdf: ${srcdir}/semantic.texi sem-user.texi
656
	$(ENVADD) $(TEXI2PDF) ${srcdir}/semantic.texi
657

658 659
ses : $(infodir)/ses$(INFO_EXT)
$(infodir)/ses$(INFO_EXT): ses.texi
660
	$(mkinfodir)
661 662
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ses.texi
663
ses.dvi: ${srcdir}/ses.texi
664
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ses.texi
665
ses.pdf: ${srcdir}/ses.texi
666
	$(ENVADD) $(TEXI2PDF) ${srcdir}/ses.texi
Glenn Morris's avatar
Glenn Morris committed
667

668 669
sieve : $(infodir)/sieve$(INFO_EXT)
$(infodir)/sieve$(INFO_EXT): sieve.texi
670
	$(mkinfodir)
671 672
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ sieve.texi
673
sieve.dvi: ${srcdir}/sieve.texi
674
	$(ENVADD) $(TEXI2DVI) ${srcdir}/sieve.texi
675
sieve.pdf: ${srcdir}/sieve.texi
676
	$(ENVADD) $(TEXI2PDF) ${srcdir}/sieve.texi
Glenn Morris's avatar
Glenn Morris committed
677

678 679
smtpmail : $(infodir)/smtpmail$(INFO_EXT)
$(infodir)/smtpmail$(INFO_EXT): smtpmail.texi
680
	$(mkinfodir)
681 682
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ smtpmail.texi
683
smtpmail.dvi: ${srcdir}/smtpmail.texi
684
	$(ENVADD) $(TEXI2DVI) ${srcdir}/smtpmail.texi
685
smtpmail.pdf: ${srcdir}/smtpmail.texi
686
	$(ENVADD) $(TEXI2PDF) ${srcdir}/smtpmail.texi
Glenn Morris's avatar
Glenn Morris committed
687

688 689
speedbar : $(infodir)/speedbar$(INFO_EXT)
$(infodir)/speedbar$(INFO_EXT): speedbar.texi
690
	$(mkinfodir)
691 692
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ speedbar.texi
693
speedbar.dvi: ${srcdir}/speedbar.texi
694
	$(ENVADD) $(TEXI2DVI) ${srcdir}/speedbar.texi
695
speedbar.pdf: ${srcdir}/speedbar.texi
696
	$(ENVADD) $(TEXI2PDF) ${srcdir}/speedbar.texi
Glenn Morris's avatar
Glenn Morris committed
697

698 699
tramp : $(infodir)/tramp$(INFO_EXT)
$(infodir)/tramp$(INFO_EXT): tramp.texi trampver.texi
700
	$(mkinfodir)
701 702
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ -D emacs tramp.texi
703
tramp.dvi: ${srcdir}/tramp.texi trampver.texi
704
	$(ENVADD) $(TEXI2DVI) ${srcdir}/tramp.texi
705
tramp.pdf: ${srcdir}/tramp.texi trampver.texi
706
	$(ENVADD) $(TEXI2PDF) ${srcdir}/tramp.texi
Glenn Morris's avatar
Glenn Morris committed
707

708 709
url : $(infodir)/url$(INFO_EXT)
$(infodir)/url$(INFO_EXT): url.texi
710
	$(mkinfodir)
711 712
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ url.texi
713
url.dvi: ${srcdir}/url.texi
714
	$(ENVADD) $(TEXI2DVI) ${srcdir}/url.texi
715
url.pdf: ${srcdir}/url.texi
716
	$(ENVADD) $(TEXI2PDF) ${srcdir}/url.texi
Glenn Morris's avatar
Glenn Morris committed
717

718 719
vip : $(infodir)/vip$(INFO_EXT)
$(infodir)/vip$(INFO_EXT): vip.texi
720
	$(mkinfodir)
721 722
	cd $(srcdir); \
	  $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ vip.texi
723
vip.dvi: ${srcdir}/vip.texi
724
	$(ENVADD) $(TEXI2DVI) ${srcdir}/vip.texi
725
vip.pdf: ${srcdir}/vip.texi
726
	$(ENVADD) $(TEXI2PDF) ${srcdir}/vip.texi