Makefile.in 17.9 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-2011  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

# The makeinfo program is part of the Texinfo distribution.
# Use --force so that it generates output even if there are errors.
43 44
MAKEINFO = @MAKEINFO@
MAKEINFO_OPTS = --force -I$(emacsdir)
45

Glenn Morris's avatar
Glenn Morris committed
46
# Also add new entries to INFO_FILES in the top-level Makefile.in.
47 48
INFO_TARGETS = \
	$(infodir)/ada-mode \
49
	$(infodir)/auth \
50 51 52 53
	$(infodir)/autotype \
	$(infodir)/calc \
	$(infodir)/ccmode \
	$(infodir)/cl \
54
	$(infodir)/dbus \
55 56
	$(infodir)/dired-x \
	$(infodir)/ebrowse \
Chong Yidong's avatar
Chong Yidong committed
57
	$(infodir)/ede \
58
	$(infodir)/ediff \
59
	$(infodir)/edt \
Chong Yidong's avatar
Chong Yidong committed
60
	$(infodir)/eieio \
61
	$(infodir)/emacs-mime \
Michael Olson's avatar
Michael Olson committed
62
	$(infodir)/epa \
63
	$(infodir)/erc \
64
	$(infodir)/ert \
65 66 67 68 69 70 71 72
	$(infodir)/eshell \
	$(infodir)/eudc \
	$(infodir)/efaq \
	$(infodir)/flymake \
	$(infodir)/forms \
	$(infodir)/gnus \
	$(infodir)/idlwave \
	$(infodir)/info \
Chong Yidong's avatar
Chong Yidong committed
73
	$(infodir)/mairix-el \
74 75 76
	$(infodir)/message \
	$(infodir)/mh-e \
	$(infodir)/newsticker \
77
	$(infodir)/nxml-mode \
78 79 80 81
	$(infodir)/org \
	$(infodir)/pcl-cvs \
	$(infodir)/pgg \
	$(infodir)/rcirc \
82
	$(infodir)/remember \
83
	$(infodir)/reftex \
84
	$(infodir)/sasl \
85
	$(infodir)/sc \
86
	$(infodir)/semantic \
87 88 89 90 91 92 93 94 95 96 97 98 99
	$(infodir)/ses \
	$(infodir)/sieve \
	$(infodir)/smtpmail \
	$(infodir)/speedbar \
	$(infodir)/tramp \
	$(infodir)/url \
	$(infodir)/vip \
	$(infodir)/viper \
	$(infodir)/widget \
	$(infodir)/woman

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

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

200 201
HTML_TARGETS = emacs-faq.html

202
TEXI2DVI = texi2dvi
203
TEXI2PDF = texi2pdf
Glenn Morris's avatar
Glenn Morris committed
204

205 206
ENVADD = TEXINPUTS="$(srcdir):$(emacsdir):$(TEXINPUTS)" \
         MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
Glenn Morris's avatar
Glenn Morris committed
207

208
mkinfodir = @cd ${srcdir}; test -d ${infodir} || mkdir ${infodir} || test -d ${infodir}
209

Glenn Morris's avatar
Glenn Morris committed
210 211
.PHONY: info dvi pdf

212
info: $(INFO_TARGETS)
213

214 215 216 217
# 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
218 219
dvi: $(DVI_TARGETS)

220
pdf: $(PDF_TARGETS)
221

Glenn Morris's avatar
Glenn Morris committed
222 223 224 225 226
# 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.

227 228
## "short" target names for convenience, to just rebuild one manual.
ada-mode : $(infodir)/ada-mode
229 230
$(infodir)/ada-mode: ada-mode.texi
	$(mkinfodir)
231
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
232 233 234 235
ada-mode.dvi: ${srcdir}/ada-mode.texi
	$(ENVADD) $(TEXI2DVI) $<
ada-mode.pdf: ${srcdir}/ada-mode.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
236

237
auth : $(infodir)/auth
238 239
$(infodir)/auth: auth.texi
	$(mkinfodir)
240
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
241 242 243 244
auth.dvi: ${srcdir}/auth.texi
	$(ENVADD) $(TEXI2DVI) $<
auth.pdf: ${srcdir}/auth.texi
	$(ENVADD) $(TEXI2PDF) $<
245

246
autotype : $(infodir)/autotype
247 248
$(infodir)/autotype: autotype.texi
	$(mkinfodir)
249
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
250 251 252 253
autotype.dvi: ${srcdir}/autotype.texi
	$(ENVADD) $(TEXI2DVI) $<
autotype.pdf: ${srcdir}/autotype.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
254

255
calc : $(infodir)/calc
256
$(infodir)/calc: calc.texi $(emacsdir)/emacsver.texi
257
	$(mkinfodir)
258
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
259
calc.dvi: ${srcdir}/calc.texi $(emacsdir)/emacsver.texi
260
	$(ENVADD) $(TEXI2DVI) $<
261
calc.pdf: ${srcdir}/calc.texi $(emacsdir)/emacsver.texi
262
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
263

264
ccmode : $(infodir)/ccmode
265 266
$(infodir)/ccmode: cc-mode.texi
	$(mkinfodir)
267
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
268 269 270 271
cc-mode.dvi: ${srcdir}/cc-mode.texi
	$(ENVADD) $(TEXI2DVI) $<
cc-mode.pdf: ${srcdir}/cc-mode.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
272

273
cl : $(infodir)/cl
274 275
$(infodir)/cl: cl.texi
	$(mkinfodir)
276
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
277 278 279 280
cl.dvi: ${srcdir}/cl.texi
	$(ENVADD) $(TEXI2DVI) $<
cl.pdf: ${srcdir}/cl.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
281

282
dbus : $(infodir)/dbus
283 284
$(infodir)/dbus: dbus.texi
	$(mkinfodir)
285
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
286 287 288 289
dbus.dvi: ${srcdir}/dbus.texi
	$(ENVADD) $(TEXI2DVI) $< 
dbus.pdf: ${srcdir}/dbus.texi
	$(ENVADD) $(TEXI2PDF) $<
290

291
dired-x : $(infodir)/dired-x
292
$(infodir)/dired-x: dired-x.texi $(emacsdir)/emacsver.texi
293
	$(mkinfodir)
294
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
295
dired-x.dvi: ${srcdir}/dired-x.texi $(emacsdir)/emacsver.texi
296
	$(ENVADD) $(TEXI2DVI) $<
297
dired-x.pdf: ${srcdir}/dired-x.texi $(emacsdir)/emacsver.texi
298
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
299

300
ebrowse : $(infodir)/ebrowse
301 302
$(infodir)/ebrowse: ebrowse.texi
	$(mkinfodir)
303
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
304 305 306 307
ebrowse.dvi: ${srcdir}/ebrowse.texi
	$(ENVADD) $(TEXI2DVI) $<
ebrowse.pdf: ${srcdir}/ebrowse.texi
	$(ENVADD) $(TEXI2PDF) $<
308

Chong Yidong's avatar
Chong Yidong committed
309
ede : $(infodir)/ede
310 311
$(infodir)/ede: ede.texi
	$(mkinfodir)
312
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
313 314 315 316
ede.dvi: ${srcdir}/ede.texi
	$(ENVADD) $(TEXI2DVI) $<
ede.pdf: ${srcdir}/ede.texi
	$(ENVADD) $(TEXI2PDF) $<
Chong Yidong's avatar
Chong Yidong committed
317

318
ediff : $(infodir)/ediff
319 320
$(infodir)/ediff: ediff.texi
	$(mkinfodir)
321
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
322 323 324 325
ediff.dvi: ${srcdir}/ediff.texi
	$(ENVADD) $(TEXI2DVI) $<
ediff.pdf: ${srcdir}/ediff.texi
	$(ENVADD) $(TEXI2PDF) $<
326 327

edt : $(infodir)/edt
328 329
$(infodir)/edt: edt.texi
	$(mkinfodir)
330
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
331 332 333 334
edt.dvi: ${srcdir}/edt.texi
	$(ENVADD) $(TEXI2DVI) $<
edt.pdf: ${srcdir}/edt.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
335

Chong Yidong's avatar
Chong Yidong committed
336
eieio : $(infodir)/eieio
337 338
$(infodir)/eieio: eieio.texi
	$(mkinfodir)
339
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
340 341 342 343
eieio.dvi: ${srcdir}/eieio.texi
	$(ENVADD) $(TEXI2DVI) $<
eieio.pdf: ${srcdir}/eieio.texi
	$(ENVADD) $(TEXI2PDF) $<
Chong Yidong's avatar
Chong Yidong committed
344

345
emacs-mime : $(infodir)/emacs-mime
346 347
$(infodir)/emacs-mime: emacs-mime.texi
	$(mkinfodir)
348
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) --enable-encoding $<
349 350 351 352
emacs-mime.dvi: ${srcdir}/emacs-mime.texi
	$(ENVADD) $(TEXI2DVI) $<
emacs-mime.pdf: ${srcdir}/emacs-mime.texi
	$(ENVADD) $(TEXI2PDF) $<
353

Michael Olson's avatar
Michael Olson committed
354
epa : $(infodir)/epa
355 356
$(infodir)/epa: epa.texi
	$(mkinfodir)
357
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
358 359 360 361
epa.dvi: ${srcdir}/epa.texi
	$(ENVADD) $(TEXI2DVI) $<
epa.pdf: ${srcdir}/epa.texi
	$(ENVADD) $(TEXI2PDF) $<
Michael Olson's avatar
Michael Olson committed
362

363
erc : $(infodir)/erc
364 365
$(infodir)/erc: erc.texi
	$(mkinfodir)
366
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
367 368 369 370
erc.dvi: ${srcdir}/erc.texi
	$(ENVADD) $(TEXI2DVI) $<
erc.pdf: ${srcdir}/erc.texi
	$(ENVADD) $(TEXI2PDF) $<
371

372 373 374 375 376 377 378 379
ert : $(infodir)/ert
$(infodir)/ert: ert.texi $(infodir)
	cd $(srcdir); $(MAKEINFO) ert.texi
ert.dvi: ert.texi
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ert.texi
ert.pdf: ert.texi
	$(ENVADD) $(TEXI2PDF) ${srcdir}/ert.texi

380
eshell : $(infodir)/eshell
381 382
$(infodir)/eshell: eshell.texi
	$(mkinfodir)
383
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
384 385 386 387
eshell.dvi: ${srcdir}/eshell.texi
	$(ENVADD) $(TEXI2DVI) $<
eshell.pdf: ${srcdir}/eshell.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
388

389 390
eudc : $(infodir)/eudc
$(infodir)/eudc: eudc.texi
391
	$(mkinfodir)
392
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
393 394 395 396
eudc.dvi: ${srcdir}/eudc.texi
	$(ENVADD) $(TEXI2DVI) $<
eudc.pdf: ${srcdir}/eudc.texi
	$(ENVADD) $(TEXI2PDF) $<
397 398

efaq : $(infodir)/efaq
399 400
$(infodir)/efaq: faq.texi $(emacsdir)/emacsver.texi
	$(mkinfodir)
401
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
402 403 404 405
faq.dvi: ${srcdir}/faq.texi $(emacsdir)/emacsver.texi
	$(ENVADD) $(TEXI2DVI) $<
faq.pdf: ${srcdir}/faq.texi $(emacsdir)/emacsver.texi
	$(ENVADD) $(TEXI2PDF) $<
406 407 408
## 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
409
	$(MAKEINFO) $(MAKEINFO_OPTS) --no-split \
410
	  --css-ref='/layout.css' --html -o $@ $<
411 412 413 414
	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
	$(MAKEINFO) $(MAKEINFO_OPTS) --plaintext -o $@ $<
415 416 417

flymake : $(infodir)/flymake
$(infodir)/flymake: flymake.texi
418
	$(mkinfodir)
419
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
420 421 422 423
flymake.dvi: ${srcdir}/flymake.texi
	$(ENVADD) $(TEXI2DVI) $<
flymake.pdf: ${srcdir}/flymake.texi
	$(ENVADD) $(TEXI2PDF) $<
424 425

forms : $(infodir)/forms
426 427
$(infodir)/forms: forms.texi
	$(mkinfodir)
428
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
429 430 431 432
forms.dvi: ${srcdir}/forms.texi
	$(ENVADD) $(TEXI2DVI) $<
forms.pdf: ${srcdir}/forms.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
433 434

# gnus/message/emacs-mime/sieve/pgg are part of Gnus:
435
gnus : $(infodir)/gnus
436 437
$(infodir)/gnus: gnus.texi gnus-faq.texi
	$(mkinfodir)
438
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
439 440
gnus.dvi: ${srcdir}/gnus.texi gnus-faq.texi
	sed -e '/@iflatex/,/@end iflatex/d' $< > gnustmp.texi
Glenn Morris's avatar
Glenn Morris committed
441 442 443
	$(ENVADD) $(TEXI2DVI) gnustmp.texi
	cp gnustmp.dvi $*.dvi
	rm gnustmp.*
444 445
gnus.pdf: ${srcdir}/gnus.texi gnus-faq.texi
	sed -e '/@iflatex/,/@end iflatex/d' $< > gnustmp.texi
446 447 448
	$(ENVADD) $(TEXI2PDF) gnustmp.texi
	cp gnustmp.pdf $@
	rm gnustmp.*
Glenn Morris's avatar
Glenn Morris committed
449

450 451 452
# This is produced with --no-split to avoid making files whose
# names clash on DOS 8+3 filesystems
idlwave : $(infodir)/idlwave
453 454
$(infodir)/idlwave: idlwave.texi
	$(mkinfodir)
455
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) --no-split $<
456 457 458 459
idlwave.dvi: ${srcdir}/idlwave.texi
	$(ENVADD) $(TEXI2DVI) $<
idlwave.pdf: ${srcdir}/idlwave.texi
	$(ENVADD) $(TEXI2PDF) $<
460 461 462 463 464

# The following target uses an explicit -o switch to work around
# the @setfilename directive in info.texi, which is required for
# the Texinfo distribution.
###info : $(infodir)/info   # circular!
465 466
$(infodir)/info: info.texi
	$(mkinfodir)
467
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) --no-split $< -o $@
468 469 470 471
info.dvi: ${srcdir}/info.texi
	$(ENVADD) $(TEXI2DVI) $<
info.pdf: ${srcdir}/info.texi
	$(ENVADD) $(TEXI2PDF) $<
472

Chong Yidong's avatar
Chong Yidong committed
473
mairix-el : $(infodir)/mairix-el
474 475
$(infodir)/mairix-el: mairix-el.texi
	$(mkinfodir)
476
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
477 478 479 480
mairix-el.dvi: ${srcdir}/mairix-el.texi
	$(ENVADD) $(TEXI2DVI) $<
mairix-el.pdf: ${srcdir}/mairix-el.texi
	$(ENVADD) $(TEXI2PDF) $<
Chong Yidong's avatar
Chong Yidong committed
481

482
message : $(infodir)/message
483 484
$(infodir)/message: message.texi
	$(mkinfodir)
485
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
486 487 488 489
message.dvi: ${srcdir}/message.texi
	$(ENVADD) $(TEXI2DVI) $<
message.pdf: ${srcdir}/message.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
490

491
mh-e : $(infodir)/mh-e
492 493
$(infodir)/mh-e: mh-e.texi
	$(mkinfodir)
494
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
495 496 497 498
mh-e.dvi: ${srcdir}/mh-e.texi
	$(ENVADD) $(TEXI2DVI) $<
mh-e.pdf: ${srcdir}/mh-e.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
499

500
newsticker : $(infodir)/newsticker
501 502
$(infodir)/newsticker: newsticker.texi
	$(mkinfodir)
503
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
504 505 506 507
newsticker.dvi: ${srcdir}/newsticker.texi
	$(ENVADD) $(TEXI2DVI) $<
newsticker.pdf: ${srcdir}/newsticker.texi
	$(ENVADD) $(TEXI2PDF) $<
508 509

nxml-mode : $(infodir)/nxml-mode
510 511
$(infodir)/nxml-mode: nxml-mode.texi
	$(mkinfodir)
512
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
513 514 515 516
nxml-mode.dvi: ${srcdir}/nxml-mode.texi
	$(ENVADD) $(TEXI2DVI) $<
nxml-mode.pdf: ${srcdir}/nxml-mode.texi
	$(ENVADD) $(TEXI2PDF) $<
517 518

org : $(infodir)/org
519 520
$(infodir)/org: org.texi
	$(mkinfodir)
521
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
522 523 524 525
org.dvi: ${srcdir}/org.texi
	$(ENVADD) $(TEXI2DVI) $<
org.pdf: ${srcdir}/org.texi
	$(ENVADD) $(TEXI2PDF) $<
526 527

pcl-cvs : $(infodir)/pcl-cvs
528 529
$(infodir)/pcl-cvs: pcl-cvs.texi
	$(mkinfodir)
530
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
531 532 533 534
pcl-cvs.dvi: ${srcdir}/pcl-cvs.texi
	$(ENVADD) $(TEXI2DVI) $<
pcl-cvs.pdf: ${srcdir}/pcl-cvs.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
535

536
pgg : $(infodir)/pgg
537 538
$(infodir)/pgg: pgg.texi
	$(mkinfodir)
539
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
540 541 542 543
pgg.dvi: ${srcdir}/pgg.texi
	$(ENVADD) $(TEXI2DVI) $<
pgg.pdf: ${srcdir}/pgg.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
544

545
rcirc : $(infodir)/rcirc
546 547
$(infodir)/rcirc: rcirc.texi
	$(mkinfodir)
548
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
549 550 551 552
rcirc.dvi: ${srcdir}/rcirc.texi
	$(ENVADD) $(TEXI2DVI) $<
rcirc.pdf: ${srcdir}/rcirc.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
553

554
reftex : $(infodir)/reftex
555 556
$(infodir)/reftex: reftex.texi
	$(mkinfodir)
557
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
558 559 560 561
reftex.dvi: ${srcdir}/reftex.texi
	$(ENVADD) $(TEXI2DVI) $<
reftex.pdf: ${srcdir}/reftex.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
562

563
remember : $(infodir)/remember
564 565
$(infodir)/remember: remember.texi
	$(mkinfodir)
566
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
567 568 569 570
remember.dvi: ${srcdir}/remember.texi
	$(ENVADD) $(TEXI2DVI) $<
remember.pdf: ${srcdir}/remember.texi
	$(ENVADD) $(TEXI2PDF) $<
571

572
sasl : $(infodir)/sasl
573 574
$(infodir)/sasl: sasl.texi
	$(mkinfodir)
575
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
576 577 578 579
sasl.dvi: ${srcdir}/sasl.texi
	$(ENVADD) $(TEXI2DVI) $<
sasl.pdf: ${srcdir}/sasl.texi
	$(ENVADD) $(TEXI2PDF) $<
580

581
sc : $(infodir)/sc
582 583
$(infodir)/sc: sc.texi
	$(mkinfodir)
584
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
585 586 587 588
sc.dvi: ${srcdir}/sc.texi
	$(ENVADD) $(TEXI2DVI) $<
sc.pdf: ${srcdir}/sc.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
589

590
semantic : $(infodir)/semantic
591 592
$(infodir)/semantic: semantic.texi sem-user.texi
	$(mkinfodir)
593
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
594 595 596 597
semantic.dvi: ${srcdir}/semantic.texi sem-user.texi
	$(ENVADD) $(TEXI2DVI) $<
semantic.pdf: ${srcdir}/semantic.texi sem-user.texi
	$(ENVADD) $(TEXI2PDF) $<
598

599
ses : $(infodir)/ses
600 601
$(infodir)/ses: ses.texi
	$(mkinfodir)
602
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
603 604 605 606
ses.dvi: ${srcdir}/ses.texi
	$(ENVADD) $(TEXI2DVI) $<
ses.pdf: ${srcdir}/ses.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
607

608
sieve : $(infodir)/sieve
609 610
$(infodir)/sieve: sieve.texi
	$(mkinfodir)
611
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
612 613 614 615
sieve.dvi: ${srcdir}/sieve.texi
	$(ENVADD) $(TEXI2DVI) $<
sieve.pdf: ${srcdir}/sieve.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
616

617
smtpmail : $(infodir)/smtpmail
618 619
$(infodir)/smtpmail: smtpmail.texi
	$(mkinfodir)
620
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
621 622 623 624
smtpmail.dvi: ${srcdir}/smtpmail.texi
	$(ENVADD) $(TEXI2DVI) $<
smtpmail.pdf: ${srcdir}/smtpmail.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
625

626
speedbar : $(infodir)/speedbar
627 628
$(infodir)/speedbar: speedbar.texi
	$(mkinfodir)
629
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
630 631 632 633
speedbar.dvi: ${srcdir}/speedbar.texi
	$(ENVADD) $(TEXI2DVI) $<
speedbar.pdf: ${srcdir}/speedbar.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
634

635
tramp : $(infodir)/tramp
636 637
$(infodir)/tramp: tramp.texi trampver.texi
	$(mkinfodir)
638
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) -D emacs $<
639 640 641 642
tramp.dvi: ${srcdir}/tramp.texi trampver.texi
	$(ENVADD) $(TEXI2DVI) $<
tramp.pdf: ${srcdir}/tramp.texi trampver.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
643

644
url : $(infodir)/url
645 646
$(infodir)/url: url.texi
	$(mkinfodir)
647
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
648 649 650 651
url.dvi: ${srcdir}/url.texi
	$(ENVADD) $(TEXI2DVI) $<
url.pdf: ${srcdir}/url.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
652

653
vip : $(infodir)/vip
654 655
$(infodir)/vip: vip.texi
	$(mkinfodir)
656
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
657 658 659 660
vip.dvi: ${srcdir}/vip.texi
	$(ENVADD) $(TEXI2DVI) $<
vip.pdf: ${srcdir}/vip.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
661

662
viper : $(infodir)/viper
663 664
$(infodir)/viper: viper.texi
	$(mkinfodir)
665
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
666 667 668 669
viper.dvi: ${srcdir}/viper.texi
	$(ENVADD) $(TEXI2DVI) $<
viper.pdf: ${srcdir}/viper.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
670

671
widget : $(infodir)/widget
672 673
$(infodir)/widget: widget.texi
	$(mkinfodir)
674
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
675 676 677 678
widget.dvi: ${srcdir}/widget.texi
	$(ENVADD) $(TEXI2DVI) $<
widget.pdf: ${srcdir}/widget.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
679

680
woman : $(infodir)/woman
681 682
$(infodir)/woman: woman.texi
	$(mkinfodir)
683
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
684 685 686 687
woman.dvi: ${srcdir}/woman.texi
	$(ENVADD) $(TEXI2DVI) $<
woman.pdf: ${srcdir}/woman.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
688 689


Glenn Morris's avatar
Glenn Morris committed
690 691
.PHONY: mostlyclean clean distclean maintainer-clean

Glenn Morris's avatar
Glenn Morris committed
692
mostlyclean:
693
	rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \
694 695
	  *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs
	rm -f gnustmp.*
Glenn Morris's avatar
Glenn Morris committed
696 697

clean: mostlyclean
698
	rm -f $(DVI_TARGETS) $(PDF_TARGETS) $(HTML_TARGETS) emacs-faq.text
Glenn Morris's avatar
Glenn Morris committed
699 700

distclean: clean
701
#	rm -f Makefile
Glenn Morris's avatar
Glenn Morris committed
702

Glenn Morris's avatar
Glenn Morris committed
703
## infodir is relative to srcdir.
Glenn Morris's avatar
Glenn Morris committed
704
maintainer-clean: distclean
Glenn Morris's avatar
Glenn Morris committed
705
	cd $(srcdir); for file in $(INFO_TARGETS); do \
706 707
	  rm -f $${file} $${file}-[1-9] $${file}-[1-9][0-9]; \
	done
Glenn Morris's avatar
Glenn Morris committed
708

709
### Makefile ends here