Makefile.in 17.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-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 31
# 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
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

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

203 204
ENVADD = TEXINPUTS="$(srcdir):$(emacsdir):$(TEXINPUTS)" \
         MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
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

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

218
pdf: $(PDF_TARGETS)
219

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

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

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

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

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

262
ccmode : $(infodir)/ccmode
263 264
$(infodir)/ccmode: cc-mode.texi
	$(mkinfodir)
265
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
266 267 268 269
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
270

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

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

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

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

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

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

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

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

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

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

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

370 371 372 373 374 375 376 377
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

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

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

efaq : $(infodir)/efaq
397 398
$(infodir)/efaq: faq.texi $(emacsdir)/emacsver.texi
	$(mkinfodir)
399
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
400 401 402 403
faq.dvi: ${srcdir}/faq.texi $(emacsdir)/emacsver.texi
	$(ENVADD) $(TEXI2DVI) $<
faq.pdf: ${srcdir}/faq.texi $(emacsdir)/emacsver.texi
	$(ENVADD) $(TEXI2PDF) $<
404 405 406

flymake : $(infodir)/flymake
$(infodir)/flymake: flymake.texi
407
	$(mkinfodir)
408
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
409 410 411 412
flymake.dvi: ${srcdir}/flymake.texi
	$(ENVADD) $(TEXI2DVI) $<
flymake.pdf: ${srcdir}/flymake.texi
	$(ENVADD) $(TEXI2PDF) $<
413 414

forms : $(infodir)/forms
415 416
$(infodir)/forms: forms.texi
	$(mkinfodir)
417
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
418 419 420 421
forms.dvi: ${srcdir}/forms.texi
	$(ENVADD) $(TEXI2DVI) $<
forms.pdf: ${srcdir}/forms.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
422 423

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

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

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

Chong Yidong's avatar
Chong Yidong committed
462
mairix-el : $(infodir)/mairix-el
463 464
$(infodir)/mairix-el: mairix-el.texi
	$(mkinfodir)
465
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
466 467 468 469
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
470

471
message : $(infodir)/message
472 473
$(infodir)/message: message.texi
	$(mkinfodir)
474
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
475 476 477 478
message.dvi: ${srcdir}/message.texi
	$(ENVADD) $(TEXI2DVI) $<
message.pdf: ${srcdir}/message.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
479

480
mh-e : $(infodir)/mh-e
481 482
$(infodir)/mh-e: mh-e.texi
	$(mkinfodir)
483
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
484 485 486 487
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
488

489
newsticker : $(infodir)/newsticker
490 491
$(infodir)/newsticker: newsticker.texi
	$(mkinfodir)
492
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
493 494 495 496
newsticker.dvi: ${srcdir}/newsticker.texi
	$(ENVADD) $(TEXI2DVI) $<
newsticker.pdf: ${srcdir}/newsticker.texi
	$(ENVADD) $(TEXI2PDF) $<
497 498

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

org : $(infodir)/org
508 509
$(infodir)/org: org.texi
	$(mkinfodir)
510
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
511 512 513 514
org.dvi: ${srcdir}/org.texi
	$(ENVADD) $(TEXI2DVI) $<
org.pdf: ${srcdir}/org.texi
	$(ENVADD) $(TEXI2PDF) $<
515 516

pcl-cvs : $(infodir)/pcl-cvs
517 518
$(infodir)/pcl-cvs: pcl-cvs.texi
	$(mkinfodir)
519
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
520 521 522 523
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
524

525
pgg : $(infodir)/pgg
526 527
$(infodir)/pgg: pgg.texi
	$(mkinfodir)
528
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
529 530 531 532
pgg.dvi: ${srcdir}/pgg.texi
	$(ENVADD) $(TEXI2DVI) $<
pgg.pdf: ${srcdir}/pgg.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
533

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

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

552
remember : $(infodir)/remember
553 554
$(infodir)/remember: remember.texi
	$(mkinfodir)
555
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
556 557 558 559
remember.dvi: ${srcdir}/remember.texi
	$(ENVADD) $(TEXI2DVI) $<
remember.pdf: ${srcdir}/remember.texi
	$(ENVADD) $(TEXI2PDF) $<
560

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

570
sc : $(infodir)/sc
571 572
$(infodir)/sc: sc.texi
	$(mkinfodir)
573
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
574 575 576 577
sc.dvi: ${srcdir}/sc.texi
	$(ENVADD) $(TEXI2DVI) $<
sc.pdf: ${srcdir}/sc.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
578

579
semantic : $(infodir)/semantic
580 581
$(infodir)/semantic: semantic.texi sem-user.texi
	$(mkinfodir)
582
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
583 584 585 586
semantic.dvi: ${srcdir}/semantic.texi sem-user.texi
	$(ENVADD) $(TEXI2DVI) $<
semantic.pdf: ${srcdir}/semantic.texi sem-user.texi
	$(ENVADD) $(TEXI2PDF) $<
587

588
ses : $(infodir)/ses
589 590
$(infodir)/ses: ses.texi
	$(mkinfodir)
591
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
592 593 594 595
ses.dvi: ${srcdir}/ses.texi
	$(ENVADD) $(TEXI2DVI) $<
ses.pdf: ${srcdir}/ses.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
596

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

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

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

624
tramp : $(infodir)/tramp
625 626
$(infodir)/tramp: tramp.texi trampver.texi
	$(mkinfodir)
627
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) -D emacs $<
628 629 630 631
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
632

633
url : $(infodir)/url
634 635
$(infodir)/url: url.texi
	$(mkinfodir)
636
	cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
637 638 639 640
url.dvi: ${srcdir}/url.texi
	$(ENVADD) $(TEXI2DVI) $<
url.pdf: ${srcdir}/url.texi
	$(ENVADD) $(TEXI2PDF) $<
Glenn Morris's avatar
Glenn Morris committed
641

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

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

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

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


Glenn Morris's avatar
Glenn Morris committed
679 680
.PHONY: mostlyclean clean distclean maintainer-clean

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

clean: mostlyclean
687
	rm -f $(DVI_TARGETS) $(PDF_TARGETS)
Glenn Morris's avatar
Glenn Morris committed
688 689

distclean: clean
690
#	rm -f Makefile
Glenn Morris's avatar
Glenn Morris committed
691

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

698
### Makefile ends here