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

220 221 222
# Default.
info: $(INFO_TARGETS)

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

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

233
pdf: $(PDF_TARGETS)
234

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

240 241
# Note: "<" is not portable in ordinary make rules.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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