Makefile.in 25.2 KB
Newer Older
1
#### Makefile for documentation other than the Emacs manual.
Glenn Morris's avatar
Glenn Morris committed
2

3
# Copyright (C) 1994, 1996-2013 Free Software Foundation, Inc.
Glenn Morris's avatar
Glenn Morris committed
4 5 6

# This file is part of GNU Emacs.

7
# GNU Emacs is free software: you can redistribute it and/or modify
Glenn Morris's avatar
Glenn Morris committed
8
# it under the terms of the GNU General Public License as published by
9 10
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
Glenn Morris's avatar
Glenn Morris committed
11 12 13 14 15 16 17

# GNU Emacs is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
18
# along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
Glenn Morris's avatar
Glenn Morris committed
19

20
SHELL = /bin/sh
21 22

# Where to find the source code.  $(srcdir) will be the man-aux
Glenn Morris's avatar
Glenn Morris committed
23 24 25 26
# subdirectory of the source tree.  This is
# set by the configure script's `--srcdir' option.
srcdir=@srcdir@

27
## Where the output files go.
28
buildinfodir = $(srcdir)/../../info
29
## Directory with emacsver.texi.
30
## Currently only used by efaq and calc.
31
emacsdir = $(srcdir)/../emacs
Glenn Morris's avatar
Glenn Morris committed
32

33 34
MKDIR_P = @MKDIR_P@

35 36 37 38
INFO_EXT=@INFO_EXT@
# Options used only when making info output.
INFO_OPTS=@INFO_OPTS@

Glenn Morris's avatar
Glenn Morris committed
39 40
# The makeinfo program is part of the Texinfo distribution.
# Use --force so that it generates output even if there are errors.
41 42
MAKEINFO = @MAKEINFO@
MAKEINFO_OPTS = --force -I$(emacsdir)
43

44
INFO_TARGETS = ada-mode auth autotype bovine calc ccmode cl \
45 46 47 48 49
	dbus dired-x ebrowse ede ediff edt eieio \
	emacs-mime epa erc ert eshell eudc efaq \
	flymake forms gnus emacs-gnutls idlwave info.info \
	mairix-el message mh-e newsticker nxml-mode \
	org pcl-cvs pgg rcirc remember reftex sasl \
50
	sc semantic ses sieve smtpmail speedbar srecode tramp \
51
	url vip viper widget wisent woman
52 53 54

DVI_TARGETS = \
	ada-mode.dvi \
55
	auth.dvi \
56
	autotype.dvi \
57
	bovine.dvi \
58 59 60
	calc.dvi \
	cc-mode.dvi \
	cl.dvi \
61
	dbus.dvi \
62 63
	dired-x.dvi \
	ebrowse.dvi \
Chong Yidong's avatar
Chong Yidong committed
64
	ede.dvi \
65
	ediff.dvi \
66
	edt.dvi \
Chong Yidong's avatar
Chong Yidong committed
67
	eieio.dvi \
68
	emacs-mime.dvi \
Michael Olson's avatar
Michael Olson committed
69
	epa.dvi \
70
	erc.dvi \
71
	ert.dvi \
72 73 74 75 76 77
	eshell.dvi \
	eudc.dvi \
	faq.dvi \
	flymake.dvi \
	forms.dvi \
	gnus.dvi \
78
	emacs-gnutls.dvi \
79 80
	idlwave.dvi \
	info.dvi \
Chong Yidong's avatar
Chong Yidong committed
81
	mairix-el.dvi \
82 83 84
	message.dvi \
	mh-e.dvi \
	newsticker.dvi \
85
	nxml-mode.dvi \
86 87 88 89 90
	org.dvi \
	pcl-cvs.dvi \
	pgg.dvi \
	rcirc.dvi \
	reftex.dvi \
91
	remember.dvi \
92
	sasl.dvi \
93
	sc.dvi \
94
	semantic.dvi \
95 96 97 98
	ses.dvi \
	sieve.dvi \
	smtpmail.dvi \
	speedbar.dvi \
99
	srecode.dvi \
100 101 102 103 104
	tramp.dvi \
	url.dvi \
	vip.dvi \
	viper.dvi \
	widget.dvi \
105
	wisent.dvi \
106 107
	woman.dvi

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

163 164
HTML_TARGETS = emacs-faq.html

165
TEXI2DVI = texi2dvi
166
TEXI2PDF = texi2pdf
Glenn Morris's avatar
Glenn Morris committed
167

168 169
ENVADD = TEXINPUTS="$(srcdir):$(emacsdir):$(TEXINPUTS)" \
         MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
Glenn Morris's avatar
Glenn Morris committed
170

171
mkinfodir = @${MKDIR_P} ${buildinfodir}
172

173 174
gfdl = ${srcdir}/doclicense.texi

175
.PHONY: info dvi pdf echo-info
176 177
## Prevent implicit rule triggering for foo.info.
.SUFFIXES:
178

179 180 181
# Default.
info: $(INFO_TARGETS)

182
## Used by top-level Makefile.
183
## Base file names of output info files.
184
echo-info:
185
	@echo "$(INFO_TARGETS) " | \
186
	  sed -e 's|[^ ]*/||g' -e 's/\.info//g' -e "s/  */$(INFO_EXT) /g"
Glenn Morris's avatar
Glenn Morris committed
187

188 189 190 191
# 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
192 193
dvi: $(DVI_TARGETS)

194
pdf: $(PDF_TARGETS)
195

196 197
# Note that all the Info targets build the Info files in srcdir.
# There is no provision for Info files to exist in the build directory.
Glenn Morris's avatar
Glenn Morris committed
198 199
# In a distribution of Emacs, the Info files should be up to date.

200 201
# Note: "<" is not portable in ordinary make rules.

202
ada-mode : $(buildinfodir)/ada-mode$(INFO_EXT)
203
$(buildinfodir)/ada-mode$(INFO_EXT): ${srcdir}/ada-mode.texi ${gfdl}
204
	$(mkinfodir)
205
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/ada-mode.texi
206
ada-mode.dvi: ${srcdir}/ada-mode.texi ${gfdl}
207
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ada-mode.texi
208
ada-mode.pdf: ${srcdir}/ada-mode.texi ${gfdl}
209
	$(ENVADD) $(TEXI2PDF) ${srcdir}/ada-mode.texi
Glenn Morris's avatar
Glenn Morris committed
210

211
auth : $(buildinfodir)/auth$(INFO_EXT)
212
$(buildinfodir)/auth$(INFO_EXT): ${srcdir}/auth.texi ${gfdl}
213
	$(mkinfodir)
214
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/auth.texi
215
auth.dvi: ${srcdir}/auth.texi ${gfdl}
216
	$(ENVADD) $(TEXI2DVI) ${srcdir}/auth.texi
217
auth.pdf: ${srcdir}/auth.texi ${gfdl}
218
	$(ENVADD) $(TEXI2PDF) ${srcdir}/auth.texi
219

220
autotype : $(buildinfodir)/autotype$(INFO_EXT)
221
$(buildinfodir)/autotype$(INFO_EXT): ${srcdir}/autotype.texi ${gfdl}
222
	$(mkinfodir)
223
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/autotype.texi
224
autotype.dvi: ${srcdir}/autotype.texi ${gfdl}
225
	$(ENVADD) $(TEXI2DVI) ${srcdir}/autotype.texi
226
autotype.pdf: ${srcdir}/autotype.texi ${gfdl}
227
	$(ENVADD) $(TEXI2PDF) ${srcdir}/autotype.texi
Glenn Morris's avatar
Glenn Morris committed
228

229
bovine : $(buildinfodir)/bovine$(INFO_EXT)
230
$(buildinfodir)/bovine$(INFO_EXT): ${srcdir}/bovine.texi ${gfdl}
231 232
	$(mkinfodir)
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/bovine.texi
233
bovine.dvi: ${srcdir}/bovine.texi ${gfdl}
234
	$(ENVADD) $(TEXI2DVI) ${srcdir}/bovine.texi
235
bovine.pdf: ${srcdir}/bovine.texi ${gfdl}
236 237
	$(ENVADD) $(TEXI2PDF) ${srcdir}/bovine.texi

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

247
ccmode : $(buildinfodir)/ccmode$(INFO_EXT)
248
$(buildinfodir)/ccmode$(INFO_EXT): ${srcdir}/cc-mode.texi ${gfdl}
249
	$(mkinfodir)
250
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/cc-mode.texi
251
cc-mode.dvi: ${srcdir}/cc-mode.texi ${gfdl}
252
	$(ENVADD) $(TEXI2DVI) ${srcdir}/cc-mode.texi
253
cc-mode.pdf: ${srcdir}/cc-mode.texi ${gfdl}
254
	$(ENVADD) $(TEXI2PDF) ${srcdir}/cc-mode.texi
Glenn Morris's avatar
Glenn Morris committed
255

256
cl : $(buildinfodir)/cl$(INFO_EXT)
257
$(buildinfodir)/cl$(INFO_EXT): ${srcdir}/cl.texi $(emacsdir)/emacsver.texi ${gfdl}
258
	$(mkinfodir)
259
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/cl.texi
260
cl.dvi: ${srcdir}/cl.texi $(emacsdir)/emacsver.texi ${gfdl}
261
	$(ENVADD) $(TEXI2DVI) ${srcdir}/cl.texi
262
cl.pdf: ${srcdir}/cl.texi $(emacsdir)/emacsver.texi ${gfdl}
263
	$(ENVADD) $(TEXI2PDF) ${srcdir}/cl.texi
Glenn Morris's avatar
Glenn Morris committed
264

265
dbus : $(buildinfodir)/dbus$(INFO_EXT)
266
$(buildinfodir)/dbus$(INFO_EXT): ${srcdir}/dbus.texi ${gfdl}
267
	$(mkinfodir)
268
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/dbus.texi
269
dbus.dvi: ${srcdir}/dbus.texi ${gfdl}
270
	$(ENVADD) $(TEXI2DVI) ${srcdir}/dbus.texi
271
dbus.pdf: ${srcdir}/dbus.texi ${gfdl}
272
	$(ENVADD) $(TEXI2PDF) ${srcdir}/dbus.texi
273

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

283
ebrowse : $(buildinfodir)/ebrowse$(INFO_EXT)
284
$(buildinfodir)/ebrowse$(INFO_EXT): ${srcdir}/ebrowse.texi ${gfdl}
285
	$(mkinfodir)
286
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/ebrowse.texi
287
ebrowse.dvi: ${srcdir}/ebrowse.texi ${gfdl}
288
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ebrowse.texi
289
ebrowse.pdf: ${srcdir}/ebrowse.texi ${gfdl}
290
	$(ENVADD) $(TEXI2PDF) ${srcdir}/ebrowse.texi
291

292
ede : $(buildinfodir)/ede$(INFO_EXT)
293
$(buildinfodir)/ede$(INFO_EXT): ${srcdir}/ede.texi ${gfdl}
294
	$(mkinfodir)
295
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/ede.texi
296
ede.dvi: ${srcdir}/ede.texi ${gfdl}
297
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ede.texi
298
ede.pdf: ${srcdir}/ede.texi ${gfdl}
299
	$(ENVADD) $(TEXI2PDF) ${srcdir}/ede.texi
Chong Yidong's avatar
Chong Yidong committed
300

301
ediff : $(buildinfodir)/ediff$(INFO_EXT)
302
$(buildinfodir)/ediff$(INFO_EXT): ${srcdir}/ediff.texi ${gfdl}
303
	$(mkinfodir)
304
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/ediff.texi
305
ediff.dvi: ${srcdir}/ediff.texi ${gfdl}
306
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ediff.texi
307
ediff.pdf: ${srcdir}/ediff.texi ${gfdl}
308
	$(ENVADD) $(TEXI2PDF) ${srcdir}/ediff.texi
309

310
edt : $(buildinfodir)/edt$(INFO_EXT)
311
$(buildinfodir)/edt$(INFO_EXT): ${srcdir}/edt.texi ${gfdl}
312
	$(mkinfodir)
313
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/edt.texi
314
edt.dvi: ${srcdir}/edt.texi ${gfdl}
315
	$(ENVADD) $(TEXI2DVI) ${srcdir}/edt.texi
316
edt.pdf: ${srcdir}/edt.texi ${gfdl}
317
	$(ENVADD) $(TEXI2PDF) ${srcdir}/edt.texi
Glenn Morris's avatar
Glenn Morris committed
318

319
eieio : $(buildinfodir)/eieio$(INFO_EXT)
320
$(buildinfodir)/eieio$(INFO_EXT): ${srcdir}/eieio.texi ${gfdl}
321
	$(mkinfodir)
322
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/eieio.texi
323
eieio.dvi: ${srcdir}/eieio.texi ${gfdl}
324
	$(ENVADD) $(TEXI2DVI) ${srcdir}/eieio.texi
325
eieio.pdf: ${srcdir}/eieio.texi ${gfdl}
326
	$(ENVADD) $(TEXI2PDF) ${srcdir}/eieio.texi
Chong Yidong's avatar
Chong Yidong committed
327

328
emacs-gnutls : $(buildinfodir)/emacs-gnutls$(INFO_EXT)
329
$(buildinfodir)/emacs-gnutls$(INFO_EXT): ${srcdir}/emacs-gnutls.texi ${gfdl}
330
	$(mkinfodir)
331
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/emacs-gnutls.texi
332
emacs-gnutls.dvi: ${srcdir}/emacs-gnutls.texi ${gfdl}
333
	$(ENVADD) $(TEXI2DVI) ${srcdir}/emacs-gnutls.texi
334
emacs-gnutls.pdf: ${srcdir}/emacs-gnutls.texi ${gfdl}
335
	$(ENVADD) $(TEXI2PDF) ${srcdir}/emacs-gnutls.texi
336

337
emacs-mime : $(buildinfodir)/emacs-mime$(INFO_EXT)
338
$(buildinfodir)/emacs-mime$(INFO_EXT): ${srcdir}/emacs-mime.texi ${gfdl}
339
	$(mkinfodir)
340
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) --enable-encoding -o $@ ${srcdir}/emacs-mime.texi
341
emacs-mime.dvi: ${srcdir}/emacs-mime.texi ${gfdl}
342
	$(ENVADD) $(TEXI2DVI) ${srcdir}/emacs-mime.texi
343
emacs-mime.pdf: ${srcdir}/emacs-mime.texi ${gfdl}
344
	$(ENVADD) $(TEXI2PDF) ${srcdir}/emacs-mime.texi
345

346
epa : $(buildinfodir)/epa$(INFO_EXT)
347
$(buildinfodir)/epa$(INFO_EXT): ${srcdir}/epa.texi ${gfdl}
348
	$(mkinfodir)
349
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/epa.texi
350
epa.dvi: ${srcdir}/epa.texi ${gfdl}
351
	$(ENVADD) $(TEXI2DVI) ${srcdir}/epa.texi
352
epa.pdf: ${srcdir}/epa.texi ${gfdl}
353
	$(ENVADD) $(TEXI2PDF) ${srcdir}/epa.texi
Michael Olson's avatar
Michael Olson committed
354

355
erc : $(buildinfodir)/erc$(INFO_EXT)
356
$(buildinfodir)/erc$(INFO_EXT): ${srcdir}/erc.texi $(emacsdir)/emacsver.texi ${gfdl}
357
	$(mkinfodir)
358
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/erc.texi
359
erc.dvi: ${srcdir}/erc.texi $(emacsdir)/emacsver.texi ${gfdl}
360
	$(ENVADD) $(TEXI2DVI) ${srcdir}/erc.texi
361
erc.pdf: ${srcdir}/erc.texi $(emacsdir)/emacsver.texi ${gfdl}
362
	$(ENVADD) $(TEXI2PDF) ${srcdir}/erc.texi
363

364
ert : $(buildinfodir)/ert$(INFO_EXT)
365
$(buildinfodir)/ert$(INFO_EXT): ${srcdir}/ert.texi ${gfdl}
366
	$(mkinfodir)
367
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/ert.texi
368
ert.dvi: ${srcdir}/ert.texi ${gfdl}
369
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ert.texi
370
ert.pdf: ${srcdir}/ert.texi ${gfdl}
371
	$(ENVADD) $(TEXI2PDF) ${srcdir}/ert.texi
372

373
eshell : $(buildinfodir)/eshell$(INFO_EXT)
374
$(buildinfodir)/eshell$(INFO_EXT): ${srcdir}/eshell.texi ${gfdl}
375
	$(mkinfodir)
376
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/eshell.texi
377
eshell.dvi: ${srcdir}/eshell.texi ${gfdl}
378
	$(ENVADD) $(TEXI2DVI) ${srcdir}/eshell.texi
379
eshell.pdf: ${srcdir}/eshell.texi ${gfdl}
380
	$(ENVADD) $(TEXI2PDF) ${srcdir}/eshell.texi
Glenn Morris's avatar
Glenn Morris committed
381

382
eudc : $(buildinfodir)/eudc$(INFO_EXT)
383
$(buildinfodir)/eudc$(INFO_EXT): ${srcdir}/eudc.texi ${gfdl}
384
	$(mkinfodir)
385
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/eudc.texi
386
eudc.dvi: ${srcdir}/eudc.texi ${gfdl}
387
	$(ENVADD) $(TEXI2DVI) ${srcdir}/eudc.texi
388
eudc.pdf: ${srcdir}/eudc.texi ${gfdl}
389
	$(ENVADD) $(TEXI2PDF) ${srcdir}/eudc.texi
390

391
## No gfdl dependency.
392 393
efaq : $(buildinfodir)/efaq$(INFO_EXT)
$(buildinfodir)/efaq$(INFO_EXT): ${srcdir}/faq.texi $(emacsdir)/emacsver.texi
394
	$(mkinfodir)
395
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/faq.texi
396
faq.dvi: ${srcdir}/faq.texi $(emacsdir)/emacsver.texi
397
	$(ENVADD) $(TEXI2DVI) ${srcdir}/faq.texi
398
faq.pdf: ${srcdir}/faq.texi $(emacsdir)/emacsver.texi
399
	$(ENVADD) $(TEXI2PDF) ${srcdir}/faq.texi
400 401 402
## 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
403
	$(MAKEINFO) $(MAKEINFO_OPTS) --no-split \
404
	  --css-ref='/layout.css' --html -o $@ ${srcdir}/faq.texi
405 406 407
	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
408
	$(MAKEINFO) $(MAKEINFO_OPTS) --plaintext -o $@ ${srcdir}/faq.texi
409

410
flymake : $(buildinfodir)/flymake$(INFO_EXT)
411
$(buildinfodir)/flymake$(INFO_EXT): ${srcdir}/flymake.texi ${gfdl}
412
	$(mkinfodir)
413
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/flymake.texi
414
flymake.dvi: ${srcdir}/flymake.texi ${gfdl}
415
	$(ENVADD) $(TEXI2DVI) ${srcdir}/flymake.texi
416
flymake.pdf: ${srcdir}/flymake.texi ${gfdl}
417
	$(ENVADD) $(TEXI2PDF) ${srcdir}/flymake.texi
418

419
forms : $(buildinfodir)/forms$(INFO_EXT)
420
$(buildinfodir)/forms$(INFO_EXT): ${srcdir}/forms.texi ${gfdl}
421
	$(mkinfodir)
422
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/forms.texi
423
forms.dvi: ${srcdir}/forms.texi ${gfdl}
424
	$(ENVADD) $(TEXI2DVI) ${srcdir}/forms.texi
425
forms.pdf: ${srcdir}/forms.texi ${gfdl}
426
	$(ENVADD) $(TEXI2PDF) ${srcdir}/forms.texi
Glenn Morris's avatar
Glenn Morris committed
427 428

# gnus/message/emacs-mime/sieve/pgg are part of Gnus:
429
gnus : $(buildinfodir)/gnus$(INFO_EXT)
430
$(buildinfodir)/gnus$(INFO_EXT): ${srcdir}/gnus.texi ${srcdir}/gnus-faq.texi ${gfdl}
431
	$(mkinfodir)
432
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/gnus.texi
433
gnus.dvi: ${srcdir}/gnus.texi ${srcdir}/gnus-faq.texi ${gfdl}
434
	sed -e '/@iflatex/,/@end iflatex/d' ${srcdir}/gnus.texi > gnustmp.texi
Glenn Morris's avatar
Glenn Morris committed
435
	$(ENVADD) $(TEXI2DVI) gnustmp.texi
436
	cp gnustmp.dvi $@
Glenn Morris's avatar
Glenn Morris committed
437
	rm gnustmp.*
438
gnus.pdf: ${srcdir}/gnus.texi ${srcdir}/gnus-faq.texi ${gfdl}
439
	sed -e '/@iflatex/,/@end iflatex/d' ${srcdir}/gnus.texi > gnustmp.texi
440 441 442
	$(ENVADD) $(TEXI2PDF) gnustmp.texi
	cp gnustmp.pdf $@
	rm gnustmp.*
Glenn Morris's avatar
Glenn Morris committed
443

444
# NB this one needs --no-split even without a .info extension.
445
idlwave : $(buildinfodir)/idlwave$(INFO_EXT)
446
$(buildinfodir)/idlwave$(INFO_EXT): ${srcdir}/idlwave.texi ${gfdl}
447
	$(mkinfodir)
448
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/idlwave.texi
449
idlwave.dvi: ${srcdir}/idlwave.texi ${gfdl}
450
	$(ENVADD) $(TEXI2DVI) ${srcdir}/idlwave.texi
451
idlwave.pdf: ${srcdir}/idlwave.texi ${gfdl}
452
	$(ENVADD) $(TEXI2PDF) ${srcdir}/idlwave.texi
453

454
# NB this one needs --no-split even without a .info extension.
455
# Avoid name clash with overall "info" target.
456
info.info : $(buildinfodir)/info$(INFO_EXT)
457
$(buildinfodir)/info$(INFO_EXT): ${srcdir}/info.texi ${gfdl}
458
	$(mkinfodir)
459
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/info.texi
460
info.dvi: ${srcdir}/info.texi ${gfdl}
461
	$(ENVADD) $(TEXI2DVI) ${srcdir}/info.texi
462
info.pdf: ${srcdir}/info.texi ${gfdl}
463
	$(ENVADD) $(TEXI2PDF) ${srcdir}/info.texi
464

465
mairix-el : $(buildinfodir)/mairix-el$(INFO_EXT)
466
$(buildinfodir)/mairix-el$(INFO_EXT): ${srcdir}/mairix-el.texi ${gfdl}
467
	$(mkinfodir)
468
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/mairix-el.texi
469
mairix-el.dvi: ${srcdir}/mairix-el.texi ${gfdl}
470
	$(ENVADD) $(TEXI2DVI) ${srcdir}/mairix-el.texi
471
mairix-el.pdf: ${srcdir}/mairix-el.texi ${gfdl}
472
	$(ENVADD) $(TEXI2PDF) ${srcdir}/mairix-el.texi
Chong Yidong's avatar
Chong Yidong committed
473

474
message : $(buildinfodir)/message$(INFO_EXT)
475
$(buildinfodir)/message$(INFO_EXT): ${srcdir}/message.texi ${gfdl}
476
	$(mkinfodir)
477
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/message.texi
478
message.dvi: ${srcdir}/message.texi ${gfdl}
479
	$(ENVADD) $(TEXI2DVI) ${srcdir}/message.texi
480
message.pdf: ${srcdir}/message.texi ${gfdl}
481
	$(ENVADD) $(TEXI2PDF) ${srcdir}/message.texi
Glenn Morris's avatar
Glenn Morris committed
482

483
mh-e : $(buildinfodir)/mh-e$(INFO_EXT)
484
$(buildinfodir)/mh-e$(INFO_EXT): ${srcdir}/mh-e.texi ${gfdl}
485
	$(mkinfodir)
486
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/mh-e.texi
487
mh-e.dvi: ${srcdir}/mh-e.texi ${gfdl}
488
	$(ENVADD) $(TEXI2DVI) ${srcdir}/mh-e.texi
489
mh-e.pdf: ${srcdir}/mh-e.texi ${gfdl}
490
	$(ENVADD) $(TEXI2PDF) ${srcdir}/mh-e.texi
Glenn Morris's avatar
Glenn Morris committed
491

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

501
nxml-mode : $(buildinfodir)/nxml-mode$(INFO_EXT)
502
$(buildinfodir)/nxml-mode$(INFO_EXT): ${srcdir}/nxml-mode.texi ${gfdl}
503
	$(mkinfodir)
504
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/nxml-mode.texi
505
nxml-mode.dvi: ${srcdir}/nxml-mode.texi ${gfdl}
506
	$(ENVADD) $(TEXI2DVI) ${srcdir}/nxml-mode.texi
507
nxml-mode.pdf: ${srcdir}/nxml-mode.texi ${gfdl}
508
	$(ENVADD) $(TEXI2PDF) ${srcdir}/nxml-mode.texi
509

510
org : $(buildinfodir)/org$(INFO_EXT)
511
$(buildinfodir)/org$(INFO_EXT): ${srcdir}/org.texi ${gfdl}
512
	$(mkinfodir)
513
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/org.texi
514
org.dvi: ${srcdir}/org.texi ${gfdl}
515
	$(ENVADD) $(TEXI2DVI) ${srcdir}/org.texi
516
org.pdf: ${srcdir}/org.texi ${gfdl}
517
	$(ENVADD) $(TEXI2PDF) ${srcdir}/org.texi
518

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

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

537
rcirc : $(buildinfodir)/rcirc$(INFO_EXT)
538
$(buildinfodir)/rcirc$(INFO_EXT): ${srcdir}/rcirc.texi ${gfdl}
539
	$(mkinfodir)
540
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/rcirc.texi
541
rcirc.dvi: ${srcdir}/rcirc.texi ${gfdl}
542
	$(ENVADD) $(TEXI2DVI) ${srcdir}/rcirc.texi
543
rcirc.pdf: ${srcdir}/rcirc.texi ${gfdl}
544
	$(ENVADD) $(TEXI2PDF) ${srcdir}/rcirc.texi
Glenn Morris's avatar
Glenn Morris committed
545

546
reftex : $(buildinfodir)/reftex$(INFO_EXT)
547
$(buildinfodir)/reftex$(INFO_EXT): ${srcdir}/reftex.texi $(emacsdir)/emacsver.texi ${gfdl}
548
	$(mkinfodir)
549
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/reftex.texi
550
reftex.dvi: ${srcdir}/reftex.texi $(emacsdir)/emacsver.texi ${gfdl}
551
	$(ENVADD) $(TEXI2DVI) ${srcdir}/reftex.texi
552
reftex.pdf: ${srcdir}/reftex.texi $(emacsdir)/emacsver.texi ${gfdl}
553
	$(ENVADD) $(TEXI2PDF) ${srcdir}/reftex.texi
Glenn Morris's avatar
Glenn Morris committed
554

555
remember : $(buildinfodir)/remember$(INFO_EXT)
556
$(buildinfodir)/remember$(INFO_EXT): ${srcdir}/remember.texi ${gfdl}
557
	$(mkinfodir)
558
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/remember.texi
559
remember.dvi: ${srcdir}/remember.texi ${gfdl}
560
	$(ENVADD) $(TEXI2DVI) ${srcdir}/remember.texi
561
remember.pdf: ${srcdir}/remember.texi ${gfdl}
562
	$(ENVADD) $(TEXI2PDF) ${srcdir}/remember.texi
563

564
sasl : $(buildinfodir)/sasl$(INFO_EXT)
565
$(buildinfodir)/sasl$(INFO_EXT): ${srcdir}/sasl.texi ${gfdl}
566
	$(mkinfodir)
567
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/sasl.texi
568
sasl.dvi: ${srcdir}/sasl.texi ${gfdl}
569
	$(ENVADD) $(TEXI2DVI) ${srcdir}/sasl.texi
570
sasl.pdf: ${srcdir}/sasl.texi ${gfdl}
571
	$(ENVADD) $(TEXI2PDF) ${srcdir}/sasl.texi
572

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

582
semantic : $(buildinfodir)/semantic$(INFO_EXT)
583
$(buildinfodir)/semantic$(INFO_EXT): ${srcdir}/semantic.texi ${srcdir}/sem-user.texi ${gfdl}
584
	$(mkinfodir)
585
	$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/semantic.texi
586
semantic.dvi: ${srcdir}/semantic.texi ${srcdir}/sem-user.texi ${gfdl}
587
	$(ENVADD) $(TEXI2DVI) ${srcdir}/semantic.texi
588
semantic.pdf: ${srcdir}/semantic.texi ${srcdir}/sem-user.texi ${gfdl}
589
	$(ENVADD) $(TEXI2PDF) ${srcdir}/semantic.texi
590

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

600
sieve : $(buildinfodir)/sieve$(INFO_EXT)
601
$(buildinfodir)/sieve$(INFO_EXT): ${srcdir}/sieve.texi ${gfdl}