Makefile.in 8.98 KB
Newer Older
Richard M. Stallman's avatar
Richard M. Stallman committed
1 2
#### Makefile for the Emacs Manual and other documentation.

Simon Josefsson's avatar
Simon Josefsson committed
3
# Copyright (C) 1994, 1996, 1997, 1998, 1999, 2000, 2001, 2003
Gerd Moellmann's avatar
Gerd Moellmann committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#  Free Software Foundation, Inc.

# This file is part of GNU Emacs.

# GNU Emacs is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.

# 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
# along with GNU Emacs; see the file COPYING.  If not, write to
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.

Richard M. Stallman's avatar
Richard M. Stallman committed
23 24 25 26 27 28 29 30 31 32 33 34
# Where to find the source code.  The source code for Emacs's C kernel is
# expected to be in ${srcdir}/src, and the source code for Emacs's
# utility programs is expected to be in ${srcdir}/lib-src.  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.
VPATH=@srcdir@


# The makeinfo program is part of the Texinfo distribution.
MAKEINFO = makeinfo
35
INFO_TARGETS = ../info/emacs ../info/ccmode ../info/cl \
Richard M. Stallman's avatar
Richard M. Stallman committed
36 37
	        ../info/dired-x ../info/ediff ../info/forms ../info/gnus \
		../info/info ../info/message ../info/mh-e ../info/reftex \
Dave Love's avatar
Dave Love committed
38
		../info/sc ../info/vip ../info/viper ../info/widget \
39
		../info/efaq ../info/ada-mode ../info/autotype ../info/calc \
40
		../info/idlwave ../info/eudc ../info/ebrowse ../info/pcl-cvs \
41
		../info/woman ../info/emacs-mime ../info/eshell \
Simon Josefsson's avatar
Simon Josefsson committed
42
		../info/speedbar ../info/tramp ../info/ses ../info/smtpmail
Eli Zaretskii's avatar
Eli Zaretskii committed
43
DVI_TARGETS = 	emacs.dvi calc.dvi cc-mode.dvi cl.dvi dired-x.dvi \
44
		 ediff.dvi forms.dvi gnus.dvi message.dvi mh-e.dvi \
45
		 reftex.dvi sc.dvi vip.dvi viper.dvi widget.dvi faq.dvi \
46
		 ada-mode.dvi autotype.dvi idlwave.dvi eudc.dvi ebrowse.dvi \
47
		 pcl-cvs.dvi woman.dvi emacs-mime.dvi eshell.dvi \
Simon Josefsson's avatar
Simon Josefsson committed
48
		 speedbar.dvi tramp.dvi ses.dvi smtpmail.dvi
49
INFOSOURCES = info.texi
Richard M. Stallman's avatar
Richard M. Stallman committed
50 51 52 53 54 55 56

# The following rule does not work with all versions of `make'.
.SUFFIXES: .texi .dvi
.texi.dvi:
	texi2dvi $<

TEXI2DVI = texi2dvi
57
ENVADD = TEXINPUTS="$(srcdir):$(TEXINPUTS)" MAKEINFO="$(MAKEINFO) -I$(srcdir)"
Richard M. Stallman's avatar
Richard M. Stallman committed
58 59 60

EMACSSOURCES= \
	${srcdir}/emacs.texi \
61
	${srcdir}/doclicense.texi \
Richard M. Stallman's avatar
Richard M. Stallman committed
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
	${srcdir}/screen.texi \
	${srcdir}/commands.texi \
	${srcdir}/entering.texi \
	${srcdir}/basic.texi \
	${srcdir}/mini.texi \
	${srcdir}/m-x.texi \
	${srcdir}/help.texi \
	${srcdir}/mark.texi \
	${srcdir}/killing.texi \
	${srcdir}/regs.texi \
	${srcdir}/display.texi \
	${srcdir}/search.texi \
	${srcdir}/fixit.texi \
	${srcdir}/files.texi \
	${srcdir}/buffers.texi \
	${srcdir}/windows.texi \
	${srcdir}/frames.texi \
79
	${srcdir}/mule.texi \
Richard M. Stallman's avatar
Richard M. Stallman committed
80 81 82 83 84
	${srcdir}/major.texi \
	${srcdir}/indent.texi \
	${srcdir}/text.texi \
	${srcdir}/programs.texi \
	${srcdir}/building.texi \
85
	${srcdir}/maintaining.texi \
Richard M. Stallman's avatar
Richard M. Stallman committed
86 87 88 89 90 91 92 93 94 95
	${srcdir}/abbrevs.texi \
	${srcdir}/picture.texi \
	${srcdir}/sending.texi \
	${srcdir}/rmail.texi \
	${srcdir}/dired.texi \
	${srcdir}/calendar.texi \
	${srcdir}/misc.texi \
	${srcdir}/custom.texi \
	${srcdir}/trouble.texi \
	${srcdir}/cmdargs.texi \
96
	${srcdir}/xresources.texi \
Richard M. Stallman's avatar
Richard M. Stallman committed
97
	${srcdir}/anti.texi \
98
	${srcdir}/macos.texi \
99
	${srcdir}/msdog.texi \
Richard M. Stallman's avatar
Richard M. Stallman committed
100
	${srcdir}/gnu.texi \
101 102
	${srcdir}/glossary.texi \
	${srcdir}/ack.texi
Richard M. Stallman's avatar
Richard M. Stallman committed
103 104 105 106 107

info: $(INFO_TARGETS)

dvi: $(DVI_TARGETS)

108 109 110 111 112
# 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.

Eli Zaretskii's avatar
Eli Zaretskii committed
113
# The following target uses an explicit -o switch to work around
114 115 116
# the @setfilename directive in info.texi, which is required for
# the Texinfo distribution.

Richard M. Stallman's avatar
Richard M. Stallman committed
117
../info/info: ${INFOSOURCES}
118
	cd $(srcdir); $(MAKEINFO) --no-split info.texi -o $@
Richard M. Stallman's avatar
Richard M. Stallman committed
119 120

info.dvi: ${INFOSOURCES}
121
	$(ENVADD) $(TEXI2DVI) ${srcdir}/info.texi
Richard M. Stallman's avatar
Richard M. Stallman committed
122 123

../info/emacs: ${EMACSSOURCES}
124
	cd $(srcdir); $(MAKEINFO) emacs.texi
Richard M. Stallman's avatar
Richard M. Stallman committed
125 126

emacs.dvi: ${EMACSSOURCES}
127
	$(ENVADD) $(TEXI2DVI) ${srcdir}/emacs.texi
Richard M. Stallman's avatar
Richard M. Stallman committed
128

Eli Zaretskii's avatar
Eli Zaretskii committed
129 130 131 132 133 134 135
# This target is here so you could easily get the list of the *.texi
# files which belong to the Emacs manual (as opposed to the separate
# manuals for CL, CC Mode, Ebrowse, etc.).  With this target, you can
# say things like "grep foo `make emacsman`".
emacsman:
	@echo $(EMACSSOURCES)

136
../info/ccmode: cc-mode.texi
137
	cd $(srcdir); $(MAKEINFO) cc-mode.texi
138
cc-mode.dvi: cc-mode.texi
139
	$(ENVADD) $(TEXI2DVI) ${srcdir}/cc-mode.texi
140

141 142 143 144 145
../info/ada-mode: ada-mode.texi
	cd $(srcdir); $(MAKEINFO) ada-mode.texi
ada-mode.dvi: ada-mode.texi
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ada-mode.texi

146 147 148 149 150
../info/pcl-cvs: pcl-cvs.texi
	cd $(srcdir); $(MAKEINFO) pcl-cvs.texi
pcl-cvs.dvi: pcl-cvs.texi
	$(ENVADD) $(TEXI2DVI) ${srcdir}/pcl-cvs.texi

151 152 153 154 155
../info/eshell: eshell.texi
	cd $(srcdir); $(MAKEINFO) eshell.texi
eshell.dvi: eshell.texi
	$(ENVADD) $(TEXI2DVI) ${srcdir}/eshell.texi

Richard M. Stallman's avatar
Richard M. Stallman committed
156
../info/cl: cl.texi
157
	cd $(srcdir); $(MAKEINFO) cl.texi
Richard M. Stallman's avatar
Richard M. Stallman committed
158
cl.dvi: cl.texi
159
	$(ENVADD) $(TEXI2DVI) ${srcdir}/cl.texi
Richard M. Stallman's avatar
Richard M. Stallman committed
160 161

../info/dired-x: dired-x.texi
162
	cd $(srcdir); $(MAKEINFO) dired-x.texi
Richard M. Stallman's avatar
Richard M. Stallman committed
163
dired-x.dvi: dired-x.texi
164
	$(ENVADD) $(TEXI2DVI) ${srcdir}/dired-x.texi
Richard M. Stallman's avatar
Richard M. Stallman committed
165

166
../info/ediff: ediff.texi
167
	cd $(srcdir); $(MAKEINFO) ediff.texi
168
ediff.dvi: ediff.texi
169
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ediff.texi
170

Richard M. Stallman's avatar
Richard M. Stallman committed
171
../info/forms: forms.texi
172
	cd $(srcdir); $(MAKEINFO) forms.texi
Richard M. Stallman's avatar
Richard M. Stallman committed
173
forms.dvi: forms.texi
174
	$(ENVADD) $(TEXI2DVI) ${srcdir}/forms.texi
Richard M. Stallman's avatar
Richard M. Stallman committed
175

176 177 178
../info/gnus: gnus.texi
	cd $(srcdir); $(MAKEINFO) gnus.texi
gnus.dvi: gnus.texi
179
	sed -e '/@iflatex/,/@end iflatex/d' ${srcdir}/gnus.texi > gnustmp.texi
Dave Love's avatar
Dave Love committed
180 181 182
	$(ENVADD) $(TEXI2DVI) gnustmp.texi
	cp gnustmp.dvi $*.dvi
	rm gnustmp.*
183 184 185 186

../info/message: message.texi
	cd $(srcdir); $(MAKEINFO) message.texi
message.dvi: message.texi
187
	$(ENVADD) $(TEXI2DVI) ${srcdir}/message.texi
188

189
../info/mh-e: mh-e.texi
190
	cd $(srcdir); $(MAKEINFO) mh-e.texi
191
mh-e.dvi: mh-e.texi
192
	$(ENVADD) $(TEXI2DVI) ${srcdir}/mh-e.texi
193

194 195 196
../info/reftex: reftex.texi
	cd $(srcdir); $(MAKEINFO) reftex.texi
reftex.dvi: reftex.texi
197
	$(ENVADD) $(TEXI2DVI) ${srcdir}/reftex.texi
198

Richard M. Stallman's avatar
Richard M. Stallman committed
199
../info/sc: sc.texi
200
	cd $(srcdir); $(MAKEINFO) sc.texi
Richard M. Stallman's avatar
Richard M. Stallman committed
201
sc.dvi: sc.texi
202
	$(ENVADD) $(TEXI2DVI) ${srcdir}/sc.texi
Richard M. Stallman's avatar
Richard M. Stallman committed
203 204

../info/vip: vip.texi
205
	cd $(srcdir); $(MAKEINFO) vip.texi
Richard M. Stallman's avatar
Richard M. Stallman committed
206
vip.dvi: vip.texi
207
	$(ENVADD) $(TEXI2DVI) ${srcdir}/vip.texi
Richard M. Stallman's avatar
Richard M. Stallman committed
208

209 210 211
../info/viper: viper.texi
	cd $(srcdir); $(MAKEINFO) viper.texi
viper.dvi: viper.texi
212
	$(ENVADD) $(TEXI2DVI) ${srcdir}/viper.texi
213

214 215 216
../info/widget: widget.texi
	cd $(srcdir); $(MAKEINFO) widget.texi
widget.dvi: widget.texi
217
	$(ENVADD) $(TEXI2DVI) ${srcdir}/widget.texi
218

219
../info/efaq: faq.texi
Dave Love's avatar
Dave Love committed
220 221 222 223
	cd $(srcdir); $(MAKEINFO) faq.texi
faq.dvi: faq.texi
	$(ENVADD) $(TEXI2DVI) ${srcdir}/faq.texi

Richard M. Stallman's avatar
Richard M. Stallman committed
224
../etc/GNU: gnu1.texi gnu.texi
225
	cd $(srcdir) && makeinfo --no-headers -o ../etc/GNU gnu1.texi
Richard M. Stallman's avatar
Richard M. Stallman committed
226

Dave Love's avatar
Dave Love committed
227 228 229 230 231
../info/autotype: autotype.texi
	cd $(srcdir); $(MAKEINFO) autotype.texi
autotype.dvi: autotype.texi
	$(ENVADD) $(TEXI2DVI) ${srcdir}/autotype.texi

232 233
../info/calc: calc.texi
	cd $(srcdir); $(MAKEINFO) calc.texi
Eli Zaretskii's avatar
Eli Zaretskii committed
234 235 236

calc.dvi: calc.texi
	$(ENVADD) $(TEXI2DVI) ${srcdir}/calc.texi
237

238 239
# This is produced with --no-split to avoid making files whose
# names clash on DOS 8+3 filesystems
240
../info/idlwave: idlwave.texi
241
	cd $(srcdir); $(MAKEINFO) --no-split idlwave.texi
242 243 244
idlwave.dvi: idlwave.texi
	$(ENVADD) $(TEXI2DVI) ${srcdir}/idlwave.texi

Gerd Moellmann's avatar
Gerd Moellmann committed
245 246 247 248 249
../info/eudc: eudc.texi
	cd $(srcdir); $(MAKEINFO) eudc.texi
eudc.dvi: eudc.texi
	$(ENVADD) $(TEXI2DVI) ${srcdir}/eudc.texi

250 251 252 253 254
../info/ebrowse: ebrowse.texi
	cd $(srcdir); $(MAKEINFO) ebrowse.texi
ebrowse.dvi: ebrowse.texi
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ebrowse.texi

255 256 257 258 259
../info/woman: woman.texi
	cd $(srcdir); $(MAKEINFO) woman.texi
woman.dvi: woman.texi
	$(ENVADD) $(TEXI2DVI) ${srcdir}/woman.texi

260 261 262 263
../info/speedbar: speedbar.texi
	cd $(srcdir); $(MAKEINFO) speedbar.texi
speedbar.dvi: speedbar.texi
	$(ENVADD) $(TEXI2DVI) ${srcdir}/speedbar.texi
Dave Love's avatar
Dave Love committed
264 265 266 267 268 269

../info/emacs-mime: emacs-mime.texi
	cd $(srcdir); $(MAKEINFO) emacs-mime.texi
emacs-mime.dvi: emacs-mime.texi
	$(ENVADD) $(TEXI2DVI) ${srcdir}/emacs-mime.texi

270
../info/tramp: tramp.texi
271
	cd $(srcdir); $(MAKEINFO) -D emacs tramp.texi
272 273 274
tramp.dvi: tramp.texi
	$(ENVADD) $(TEXI2DVI) ${srcdir}/tramp.texi

275 276 277 278 279
../info/ses: ses.texi
	cd $(srcdir); $(MAKEINFO) ses.texi
ses.dvi: ses.texi
	$(ENVADD) $(TEXI2DVI) ${srcdir}/ses.texi

Simon Josefsson's avatar
Simon Josefsson committed
280 281 282 283 284
../info/smtpmail: smtpmail.texi
	cd $(srcdir); $(MAKEINFO) smtpmail.texi
smtpmail.dvi: smtpmail.texi
	$(ENVADD) $(TEXI2DVI) ${srcdir}/smtpmail.texi

Richard M. Stallman's avatar
Richard M. Stallman committed
285
mostlyclean:
286
	rm -f *.log *.cp *.fn *.ky *.pg *.vr core *.tp *.core gnustmp.*
Richard M. Stallman's avatar
Richard M. Stallman committed
287 288 289 290 291 292 293

clean: mostlyclean
	rm -f *.dvi

distclean: clean

maintainer-clean: distclean
294
	rm -f *.aux *.cps *.fns *.kys *.pgs *.vrs *.toc
Richard M. Stallman's avatar
Richard M. Stallman committed
295 296 297 298 299 300 301 302 303
# Don't delete these, because they are outside the current directory.
#	for file in $(INFO_TARGETS); do rm -f $${file}*; done


# Formerly this directory had texindex.c and getopt.c in it
# and this makefile built them to make texindex.
# That caused trouble because this is run entirely in the source directory.
# Since we expect to get texi2dvi from elsewhere,
# it is ok to expect texindex from elsewhere also.