Makefile.in 16.4 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, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
Glenn Morris's avatar
Glenn Morris committed
4 5
#   2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
#   Free Software Foundation, Inc.
Glenn Morris's avatar
Glenn Morris committed
6 7 8

# This file is part of GNU Emacs.

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

# 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
20
# along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
Glenn Morris's avatar
Glenn Morris committed
21

22
SHELL = /bin/sh
23 24

# Where to find the source code.  $(srcdir) will be the man-aux
Glenn Morris's avatar
Glenn Morris committed
25 26 27 28 29
# 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.
30 31 32 33
# 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.
# (cf src/Makefile.in's shortlisp)
Glenn Morris's avatar
Glenn Morris committed
34 35
VPATH=@srcdir@

36 37 38
## Where the output files go.
## Note that the setfilename command in the .texi files assumes this.
infodir=../../info
39
## Directory with emacsver.texi.
40
## Currently only used by efaq and calc.
41
emacsdir = $(srcdir)/../emacs
Glenn Morris's avatar
Glenn Morris committed
42 43 44

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

Glenn Morris's avatar
Glenn Morris committed
47
# Also add new entries to INFO_FILES in the top-level Makefile.in.
48 49
INFO_TARGETS = \
	$(infodir)/ada-mode \
50
	$(infodir)/auth \
51 52 53 54
	$(infodir)/autotype \
	$(infodir)/calc \
	$(infodir)/ccmode \
	$(infodir)/cl \
55
	$(infodir)/dbus \
56 57
	$(infodir)/dired-x \
	$(infodir)/ebrowse \
Chong Yidong's avatar
Chong Yidong committed
58
	$(infodir)/ede \
59
	$(infodir)/ediff \
60
	$(infodir)/edt \
Chong Yidong's avatar
Chong Yidong committed
61
	$(infodir)/eieio \
62
	$(infodir)/emacs-mime \
Michael Olson's avatar
Michael Olson committed
63
	$(infodir)/epa \
64
	$(infodir)/erc \
65
	$(infodir)/ert \
66 67 68 69 70 71 72 73
	$(infodir)/eshell \
	$(infodir)/eudc \
	$(infodir)/efaq \
	$(infodir)/flymake \
	$(infodir)/forms \
	$(infodir)/gnus \
	$(infodir)/idlwave \
	$(infodir)/info \
Chong Yidong's avatar
Chong Yidong committed
74
	$(infodir)/mairix-el \
75 76 77
	$(infodir)/message \
	$(infodir)/mh-e \
	$(infodir)/newsticker \
78
	$(infodir)/nxml-mode \
79 80 81 82
	$(infodir)/org \
	$(infodir)/pcl-cvs \
	$(infodir)/pgg \
	$(infodir)/rcirc \
83
	$(infodir)/remember \
84
	$(infodir)/reftex \
85
	$(infodir)/sasl \
86
	$(infodir)/sc \
87
	$(infodir)/semantic \
88 89 90 91 92 93 94 95 96 97 98 99 100
	$(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 \
101
	auth.dvi \
102 103 104 105
	autotype.dvi \
	calc.dvi \
	cc-mode.dvi \
	cl.dvi \
106
	dbus.dvi \
107 108
	dired-x.dvi \
	ebrowse.dvi \
Chong Yidong's avatar
Chong Yidong committed
109
	ede.dvi \
110
	ediff.dvi \
111
	edt.dvi \
Chong Yidong's avatar
Chong Yidong committed
112
	eieio.dvi \
113
	emacs-mime.dvi \
Michael Olson's avatar
Michael Olson committed
114
	epa.dvi \
115
	erc.dvi \
116
	ert.dvi \
117 118 119 120 121 122 123 124
	eshell.dvi \
	eudc.dvi \
	faq.dvi \
	flymake.dvi \
	forms.dvi \
	gnus.dvi \
	idlwave.dvi \
	info.dvi \
Chong Yidong's avatar
Chong Yidong committed
125
	mairix-el.dvi \
126 127 128
	message.dvi \
	mh-e.dvi \
	newsticker.dvi \
129
	nxml-mode.dvi \
130 131 132 133 134
	org.dvi \
	pcl-cvs.dvi \
	pgg.dvi \
	rcirc.dvi \
	reftex.dvi \
135
	remember.dvi \
136
	sasl.dvi \
137
	sc.dvi \
138
	semantic.dvi \
139 140 141 142 143 144 145 146 147 148 149
	ses.dvi \
	sieve.dvi \
	smtpmail.dvi \
	speedbar.dvi \
	tramp.dvi \
	url.dvi \
	vip.dvi \
	viper.dvi \
	widget.dvi \
	woman.dvi

150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
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 \
167
	ert.pdf \
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 199
	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
200 201

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

204
ENVADD = TEXINPUTS="$(srcdir):$(emacsdir):$(TEXINPUTS)" MAKEINFO="$(MAKEINFO) -I$(srcdir)"
Glenn Morris's avatar
Glenn Morris committed
205

206
mkinfodir = @cd ${srcdir}; test -d ${infodir} || mkdir ${infodir} || test -d ${infodir}
207

Glenn Morris's avatar
Glenn Morris committed
208 209
.PHONY: info dvi pdf

210
info: $(INFO_TARGETS)
211

Glenn Morris's avatar
Glenn Morris committed
212 213
dvi: $(DVI_TARGETS)

214
pdf: $(PDF_TARGETS)
215

Glenn Morris's avatar
Glenn Morris committed
216 217 218 219 220
# 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.

221 222
## "short" target names for convenience, to just rebuild one manual.
ada-mode : $(infodir)/ada-mode
223 224
$(infodir)/ada-mode: ada-mode.texi
	$(mkinfodir)
225 226 227 228 229
	cd $(srcdir); $(MAKEINFO) $<
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
230

231
auth : $(infodir)/auth
232 233
$(infodir)/auth: auth.texi
	$(mkinfodir)
234 235 236 237 238
	cd $(srcdir); $(MAKEINFO) $<
auth.dvi: ${srcdir}/auth.texi
	$(ENVADD) $(TEXI2DVI) $<
auth.pdf: ${srcdir}/auth.texi
	$(ENVADD) $(TEXI2PDF) $<
239

240
autotype : $(infodir)/autotype
241 242
$(infodir)/autotype: autotype.texi
	$(mkinfodir)
243 244 245 246 247
	cd $(srcdir); $(MAKEINFO) $<
autotype.dvi: ${srcdir}/autotype.texi
	$(ENVADD) $(TEXI2DVI) $<
autotype.pdf: ${srcdir}/autotype.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
248

249
calc : $(infodir)/calc
250
$(infodir)/calc: calc.texi $(emacsdir)/emacsver.texi
251
	$(mkinfodir)
252
	cd $(srcdir); $(MAKEINFO) $<
253
calc.dvi: ${srcdir}/calc.texi $(emacsdir)/emacsver.texi
254
	$(ENVADD) $(TEXI2DVI) $<
255
calc.pdf: ${srcdir}/calc.texi $(emacsdir)/emacsver.texi
256
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
257

258
ccmode : $(infodir)/ccmode
259 260
$(infodir)/ccmode: cc-mode.texi
	$(mkinfodir)
261 262 263 264 265
	cd $(srcdir); $(MAKEINFO) $<
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
266

267
cl : $(infodir)/cl
268 269
$(infodir)/cl: cl.texi
	$(mkinfodir)
270 271 272 273 274
	cd $(srcdir); $(MAKEINFO) $<
cl.dvi: ${srcdir}/cl.texi
	$(ENVADD) $(TEXI2DVI) $<
cl.pdf: ${srcdir}/cl.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
275

276
dbus : $(infodir)/dbus
277 278
$(infodir)/dbus: dbus.texi
	$(mkinfodir)
279 280 281 282 283
	cd $(srcdir); $(MAKEINFO) $<
dbus.dvi: ${srcdir}/dbus.texi
	$(ENVADD) $(TEXI2DVI) $< 
dbus.pdf: ${srcdir}/dbus.texi
	$(ENVADD) $(TEXI2PDF) $<
284

285
dired-x : $(infodir)/dired-x
286 287
$(infodir)/dired-x: dired-x.texi
	$(mkinfodir)
288 289 290 291 292
	cd $(srcdir); $(MAKEINFO) $<
dired-x.dvi: ${srcdir}/dired-x.texi
	$(ENVADD) $(TEXI2DVI) $<
dired-x.pdf: ${srcdir}/dired-x.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
293

294
ebrowse : $(infodir)/ebrowse
295 296
$(infodir)/ebrowse: ebrowse.texi
	$(mkinfodir)
297 298 299 300 301
	cd $(srcdir); $(MAKEINFO) $<
ebrowse.dvi: ${srcdir}/ebrowse.texi
	$(ENVADD) $(TEXI2DVI) $<
ebrowse.pdf: ${srcdir}/ebrowse.texi
	$(ENVADD) $(TEXI2PDF) $<
302

Chong Yidong's avatar
Chong Yidong committed
303
ede : $(infodir)/ede
304 305
$(infodir)/ede: ede.texi
	$(mkinfodir)
306 307 308 309 310
	cd $(srcdir); $(MAKEINFO) $<
ede.dvi: ${srcdir}/ede.texi
	$(ENVADD) $(TEXI2DVI) $<
ede.pdf: ${srcdir}/ede.texi
	$(ENVADD) $(TEXI2PDF) $<
Chong Yidong's avatar
Chong Yidong committed
311

312
ediff : $(infodir)/ediff
313 314
$(infodir)/ediff: ediff.texi
	$(mkinfodir)
315 316 317 318 319
	cd $(srcdir); $(MAKEINFO) $<
ediff.dvi: ${srcdir}/ediff.texi
	$(ENVADD) $(TEXI2DVI) $<
ediff.pdf: ${srcdir}/ediff.texi
	$(ENVADD) $(TEXI2PDF) $<
320 321

edt : $(infodir)/edt
322 323
$(infodir)/edt: edt.texi
	$(mkinfodir)
324 325 326 327 328
	cd $(srcdir); $(MAKEINFO) $<
edt.dvi: ${srcdir}/edt.texi
	$(ENVADD) $(TEXI2DVI) $<
edt.pdf: ${srcdir}/edt.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
329

Chong Yidong's avatar
Chong Yidong committed
330
eieio : $(infodir)/eieio
331 332
$(infodir)/eieio: eieio.texi
	$(mkinfodir)
333 334 335 336 337
	cd $(srcdir); $(MAKEINFO) $<
eieio.dvi: ${srcdir}/eieio.texi
	$(ENVADD) $(TEXI2DVI) $<
eieio.pdf: ${srcdir}/eieio.texi
	$(ENVADD) $(TEXI2PDF) $<
Chong Yidong's avatar
Chong Yidong committed
338

339
emacs-mime : $(infodir)/emacs-mime
340 341
$(infodir)/emacs-mime: emacs-mime.texi
	$(mkinfodir)
342 343 344 345 346
	cd $(srcdir); $(MAKEINFO) --enable-encoding $<
emacs-mime.dvi: ${srcdir}/emacs-mime.texi
	$(ENVADD) $(TEXI2DVI) $<
emacs-mime.pdf: ${srcdir}/emacs-mime.texi
	$(ENVADD) $(TEXI2PDF) $<
347

Michael Olson's avatar
Michael Olson committed
348
epa : $(infodir)/epa
349 350
$(infodir)/epa: epa.texi
	$(mkinfodir)
351 352 353 354 355
	cd $(srcdir); $(MAKEINFO) $<
epa.dvi: ${srcdir}/epa.texi
	$(ENVADD) $(TEXI2DVI) $<
epa.pdf: ${srcdir}/epa.texi
	$(ENVADD) $(TEXI2PDF) $<
Michael Olson's avatar
Michael Olson committed
356

357
erc : $(infodir)/erc
358 359
$(infodir)/erc: erc.texi
	$(mkinfodir)
360 361 362 363 364
	cd $(srcdir); $(MAKEINFO) $<
erc.dvi: ${srcdir}/erc.texi
	$(ENVADD) $(TEXI2DVI) $<
erc.pdf: ${srcdir}/erc.texi
	$(ENVADD) $(TEXI2PDF) $<
365

366 367 368 369 370 371 372 373
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

374
eshell : $(infodir)/eshell
375 376
$(infodir)/eshell: eshell.texi
	$(mkinfodir)
377 378 379 380 381
	cd $(srcdir); $(MAKEINFO) $<
eshell.dvi: ${srcdir}/eshell.texi
	$(ENVADD) $(TEXI2DVI) $<
eshell.pdf: ${srcdir}/eshell.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
382

383 384
eudc : $(infodir)/eudc
$(infodir)/eudc: eudc.texi
385
	$(mkinfodir)
386 387 388 389 390
	cd $(srcdir); $(MAKEINFO) $<
eudc.dvi: ${srcdir}/eudc.texi
	$(ENVADD) $(TEXI2DVI) $<
eudc.pdf: ${srcdir}/eudc.texi
	$(ENVADD) $(TEXI2PDF) $<
391 392

efaq : $(infodir)/efaq
393 394
$(infodir)/efaq: faq.texi $(emacsdir)/emacsver.texi
	$(mkinfodir)
395
	cd $(srcdir); $(MAKEINFO) $<
396 397 398 399
faq.dvi: ${srcdir}/faq.texi $(emacsdir)/emacsver.texi
	$(ENVADD) $(TEXI2DVI) $<
faq.pdf: ${srcdir}/faq.texi $(emacsdir)/emacsver.texi
	$(ENVADD) $(TEXI2PDF) $<
400 401 402

flymake : $(infodir)/flymake
$(infodir)/flymake: flymake.texi
403
	$(mkinfodir)
404 405 406 407 408
	cd $(srcdir); $(MAKEINFO) $<
flymake.dvi: ${srcdir}/flymake.texi
	$(ENVADD) $(TEXI2DVI) $<
flymake.pdf: ${srcdir}/flymake.texi
	$(ENVADD) $(TEXI2PDF) $<
409 410

forms : $(infodir)/forms
411 412
$(infodir)/forms: forms.texi
	$(mkinfodir)
413 414 415 416 417
	cd $(srcdir); $(MAKEINFO) $<
forms.dvi: ${srcdir}/forms.texi
	$(ENVADD) $(TEXI2DVI) $<
forms.pdf: ${srcdir}/forms.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
418 419

# gnus/message/emacs-mime/sieve/pgg are part of Gnus:
420
gnus : $(infodir)/gnus
421 422
$(infodir)/gnus: gnus.texi gnus-faq.texi
	$(mkinfodir)
423 424 425
	cd $(srcdir); $(MAKEINFO) $<
gnus.dvi: ${srcdir}/gnus.texi gnus-faq.texi
	sed -e '/@iflatex/,/@end iflatex/d' $< > gnustmp.texi
Glenn Morris's avatar
Glenn Morris committed
426 427 428
	$(ENVADD) $(TEXI2DVI) gnustmp.texi
	cp gnustmp.dvi $*.dvi
	rm gnustmp.*
429 430
gnus.pdf: ${srcdir}/gnus.texi gnus-faq.texi
	sed -e '/@iflatex/,/@end iflatex/d' $< > gnustmp.texi
431 432 433
	$(ENVADD) $(TEXI2PDF) gnustmp.texi
	cp gnustmp.pdf $@
	rm gnustmp.*
Glenn Morris's avatar
Glenn Morris committed
434

435 436 437
# This is produced with --no-split to avoid making files whose
# names clash on DOS 8+3 filesystems
idlwave : $(infodir)/idlwave
438 439
$(infodir)/idlwave: idlwave.texi
	$(mkinfodir)
440 441 442 443 444
	cd $(srcdir); $(MAKEINFO) --no-split $<
idlwave.dvi: ${srcdir}/idlwave.texi
	$(ENVADD) $(TEXI2DVI) $<
idlwave.pdf: ${srcdir}/idlwave.texi
	$(ENVADD) $(TEXI2PDF) $<
445 446 447 448 449

# 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!
450 451
$(infodir)/info: info.texi
	$(mkinfodir)
452 453 454 455 456
	cd $(srcdir); $(MAKEINFO) --no-split $< -o $@
info.dvi: ${srcdir}/info.texi
	$(ENVADD) $(TEXI2DVI) $<
info.pdf: ${srcdir}/info.texi
	$(ENVADD) $(TEXI2PDF) $<
457

Chong Yidong's avatar
Chong Yidong committed
458
mairix-el : $(infodir)/mairix-el
459 460
$(infodir)/mairix-el: mairix-el.texi
	$(mkinfodir)
461 462 463 464 465
	cd $(srcdir); $(MAKEINFO) $<
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
466

467
message : $(infodir)/message
468 469
$(infodir)/message: message.texi
	$(mkinfodir)
470 471 472 473 474
	cd $(srcdir); $(MAKEINFO) $<
message.dvi: ${srcdir}/message.texi
	$(ENVADD) $(TEXI2DVI) $<
message.pdf: ${srcdir}/message.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
475

476
mh-e : $(infodir)/mh-e
477 478
$(infodir)/mh-e: mh-e.texi
	$(mkinfodir)
479 480 481 482 483
	cd $(srcdir); $(MAKEINFO) $<
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
484

485
newsticker : $(infodir)/newsticker
486 487
$(infodir)/newsticker: newsticker.texi
	$(mkinfodir)
488 489 490 491 492
	cd $(srcdir); $(MAKEINFO) $<
newsticker.dvi: ${srcdir}/newsticker.texi
	$(ENVADD) $(TEXI2DVI) $<
newsticker.pdf: ${srcdir}/newsticker.texi
	$(ENVADD) $(TEXI2PDF) $<
493 494

nxml-mode : $(infodir)/nxml-mode
495 496
$(infodir)/nxml-mode: nxml-mode.texi
	$(mkinfodir)
497 498 499 500 501
	cd $(srcdir); $(MAKEINFO) $<
nxml-mode.dvi: ${srcdir}/nxml-mode.texi
	$(ENVADD) $(TEXI2DVI) $<
nxml-mode.pdf: ${srcdir}/nxml-mode.texi
	$(ENVADD) $(TEXI2PDF) $<
502 503

org : $(infodir)/org
504 505
$(infodir)/org: org.texi
	$(mkinfodir)
506 507 508 509 510
	cd $(srcdir); $(MAKEINFO) $<
org.dvi: ${srcdir}/org.texi
	$(ENVADD) $(TEXI2DVI) $<
org.pdf: ${srcdir}/org.texi
	$(ENVADD) $(TEXI2PDF) $<
511 512

pcl-cvs : $(infodir)/pcl-cvs
513 514
$(infodir)/pcl-cvs: pcl-cvs.texi
	$(mkinfodir)
515 516 517 518 519
	cd $(srcdir); $(MAKEINFO) $<
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
520

521
pgg : $(infodir)/pgg
522 523
$(infodir)/pgg: pgg.texi
	$(mkinfodir)
524 525 526 527 528
	cd $(srcdir); $(MAKEINFO) $<
pgg.dvi: ${srcdir}/pgg.texi
	$(ENVADD) $(TEXI2DVI) $<
pgg.pdf: ${srcdir}/pgg.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
529

530
rcirc : $(infodir)/rcirc
531 532
$(infodir)/rcirc: rcirc.texi
	$(mkinfodir)
533 534 535 536 537
	cd $(srcdir); $(MAKEINFO) $<
rcirc.dvi: ${srcdir}/rcirc.texi
	$(ENVADD) $(TEXI2DVI) $<
rcirc.pdf: ${srcdir}/rcirc.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
538

539
reftex : $(infodir)/reftex
540 541
$(infodir)/reftex: reftex.texi
	$(mkinfodir)
542 543 544 545 546
	cd $(srcdir); $(MAKEINFO) $<
reftex.dvi: ${srcdir}/reftex.texi
	$(ENVADD) $(TEXI2DVI) $<
reftex.pdf: ${srcdir}/reftex.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
547

548
remember : $(infodir)/remember
549 550
$(infodir)/remember: remember.texi
	$(mkinfodir)
551 552 553 554 555
	cd $(srcdir); $(MAKEINFO) $<
remember.dvi: ${srcdir}/remember.texi
	$(ENVADD) $(TEXI2DVI) $<
remember.pdf: ${srcdir}/remember.texi
	$(ENVADD) $(TEXI2PDF) $<
556

557
sasl : $(infodir)/sasl
558 559
$(infodir)/sasl: sasl.texi
	$(mkinfodir)
560 561 562 563 564
	cd $(srcdir); $(MAKEINFO) $<
sasl.dvi: ${srcdir}/sasl.texi
	$(ENVADD) $(TEXI2DVI) $<
sasl.pdf: ${srcdir}/sasl.texi
	$(ENVADD) $(TEXI2PDF) $<
565

566
sc : $(infodir)/sc
567 568
$(infodir)/sc: sc.texi
	$(mkinfodir)
569 570 571 572 573
	cd $(srcdir); $(MAKEINFO) $<
sc.dvi: ${srcdir}/sc.texi
	$(ENVADD) $(TEXI2DVI) $<
sc.pdf: ${srcdir}/sc.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
574

575
semantic : $(infodir)/semantic
576 577
$(infodir)/semantic: semantic.texi sem-user.texi
	$(mkinfodir)
578 579 580 581 582
	cd $(srcdir); $(MAKEINFO) $<
semantic.dvi: ${srcdir}/semantic.texi sem-user.texi
	$(ENVADD) $(TEXI2DVI) $<
semantic.pdf: ${srcdir}/semantic.texi sem-user.texi
	$(ENVADD) $(TEXI2PDF) $<
583

584
ses : $(infodir)/ses
585 586
$(infodir)/ses: ses.texi
	$(mkinfodir)
587 588 589 590 591
	cd $(srcdir); $(MAKEINFO) $<
ses.dvi: ${srcdir}/ses.texi
	$(ENVADD) $(TEXI2DVI) $<
ses.pdf: ${srcdir}/ses.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
592

593
sieve : $(infodir)/sieve
594 595
$(infodir)/sieve: sieve.texi
	$(mkinfodir)
596 597 598 599 600
	cd $(srcdir); $(MAKEINFO) $<
sieve.dvi: ${srcdir}/sieve.texi
	$(ENVADD) $(TEXI2DVI) $<
sieve.pdf: ${srcdir}/sieve.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
601

602
smtpmail : $(infodir)/smtpmail
603 604
$(infodir)/smtpmail: smtpmail.texi
	$(mkinfodir)
605 606 607 608 609
	cd $(srcdir); $(MAKEINFO) $<
smtpmail.dvi: ${srcdir}/smtpmail.texi
	$(ENVADD) $(TEXI2DVI) $<
smtpmail.pdf: ${srcdir}/smtpmail.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
610

611
speedbar : $(infodir)/speedbar
612 613
$(infodir)/speedbar: speedbar.texi
	$(mkinfodir)
614 615 616 617 618
	cd $(srcdir); $(MAKEINFO) $<
speedbar.dvi: ${srcdir}/speedbar.texi
	$(ENVADD) $(TEXI2DVI) $<
speedbar.pdf: ${srcdir}/speedbar.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
619

620
tramp : $(infodir)/tramp
621 622
$(infodir)/tramp: tramp.texi trampver.texi
	$(mkinfodir)
623 624 625 626 627
	cd $(srcdir); $(MAKEINFO) -D emacs $<
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
628

629
url : $(infodir)/url
630 631
$(infodir)/url: url.texi
	$(mkinfodir)
632 633 634 635 636
	cd $(srcdir); $(MAKEINFO) $<
url.dvi: ${srcdir}/url.texi
	$(ENVADD) $(TEXI2DVI) $<
url.pdf: ${srcdir}/url.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
637

638
vip : $(infodir)/vip
639 640
$(infodir)/vip: vip.texi
	$(mkinfodir)
641 642 643 644 645
	cd $(srcdir); $(MAKEINFO) $<
vip.dvi: ${srcdir}/vip.texi
	$(ENVADD) $(TEXI2DVI) $<
vip.pdf: ${srcdir}/vip.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
646

647
viper : $(infodir)/viper
648 649
$(infodir)/viper: viper.texi
	$(mkinfodir)
650 651 652 653 654
	cd $(srcdir); $(MAKEINFO) $<
viper.dvi: ${srcdir}/viper.texi
	$(ENVADD) $(TEXI2DVI) $<
viper.pdf: ${srcdir}/viper.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
655

656
widget : $(infodir)/widget
657 658
$(infodir)/widget: widget.texi
	$(mkinfodir)
659 660 661 662 663
	cd $(srcdir); $(MAKEINFO) $<
widget.dvi: ${srcdir}/widget.texi
	$(ENVADD) $(TEXI2DVI) $<
widget.pdf: ${srcdir}/widget.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
664

665
woman : $(infodir)/woman
666 667
$(infodir)/woman: woman.texi
	$(mkinfodir)
668 669 670 671 672
	cd $(srcdir); $(MAKEINFO) $<
woman.dvi: ${srcdir}/woman.texi
	$(ENVADD) $(TEXI2DVI) $<
woman.pdf: ${srcdir}/woman.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
673 674


Glenn Morris's avatar
Glenn Morris committed
675 676
.PHONY: mostlyclean clean distclean maintainer-clean

Glenn Morris's avatar
Glenn Morris committed
677
mostlyclean:
678
	rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \
679 680
	  *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs
	rm -f gnustmp.*
Glenn Morris's avatar
Glenn Morris committed
681 682

clean: mostlyclean
683
	rm -f $(DVI_TARGETS) $(PDF_TARGETS)
Glenn Morris's avatar
Glenn Morris committed
684 685

distclean: clean
686
#	rm -f Makefile
Glenn Morris's avatar
Glenn Morris committed
687

Glenn Morris's avatar
Glenn Morris committed
688
## infodir is relative to srcdir.
Glenn Morris's avatar
Glenn Morris committed
689
maintainer-clean: distclean
Glenn Morris's avatar
Glenn Morris committed
690
	cd $(srcdir); for file in $(INFO_TARGETS); do \
691 692
	  rm -f $${file} $${file}-[1-9] $${file}-[1-9][0-9]; \
	done
Glenn Morris's avatar
Glenn Morris committed
693

694
### Makefile ends here