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
.PHONY: info dvi pdf echo-info

218 219 220
# Default.
info: $(INFO_TARGETS)

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

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

231
pdf: $(PDF_TARGETS)
232

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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