Add arch taglines
[bpt/emacs.git] / man / Makefile.in
CommitLineData
3ff8ce93
RS
1#### Makefile for the Emacs Manual and other documentation.
2
d5df5512 3# Copyright (C) 1994, 1996, 1997, 1998, 1999, 2000, 2001, 2003
b3ae7a0a
GM
4# Free Software Foundation, Inc.
5
6# This file is part of GNU Emacs.
7
8# GNU Emacs is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation; either version 2, or (at your option)
11# any later version.
12
13# GNU Emacs is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17
18# You should have received a copy of the GNU General Public License
19# along with GNU Emacs; see the file COPYING. If not, write to
20# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21# Boston, MA 02111-1307, USA.
22
3ff8ce93
RS
23# Where to find the source code. The source code for Emacs's C kernel is
24# expected to be in ${srcdir}/src, and the source code for Emacs's
25# utility programs is expected to be in ${srcdir}/lib-src. This is
26# set by the configure script's `--srcdir' option.
27srcdir=@srcdir@
28
29# Tell make where to find source files; this is needed for the makefiles.
30VPATH=@srcdir@
31
32
33# The makeinfo program is part of the Texinfo distribution.
34MAKEINFO = makeinfo
04cf41b4 35INFO_TARGETS = ../info/emacs ../info/ccmode ../info/cl \
933bdce2
RS
36 ../info/dired-x ../info/ediff ../info/forms ../info/gnus \
37 ../info/info ../info/message ../info/mh-e ../info/reftex \
84e7cd78 38 ../info/sc ../info/vip ../info/viper ../info/widget \
1128d4c6 39 ../info/efaq ../info/ada-mode ../info/autotype ../info/calc \
db2672fe 40 ../info/idlwave ../info/eudc ../info/ebrowse ../info/pcl-cvs \
543951ab 41 ../info/woman ../info/emacs-mime ../info/eshell \
d5df5512 42 ../info/speedbar ../info/tramp ../info/ses ../info/smtpmail
ef0ce4e0 43DVI_TARGETS = emacs.dvi calc.dvi cc-mode.dvi cl.dvi dired-x.dvi \
cf96540d 44 ediff.dvi forms.dvi gnus.dvi message.dvi mh-e.dvi \
a226b66d 45 reftex.dvi sc.dvi vip.dvi viper.dvi widget.dvi faq.dvi \
6684834d 46 ada-mode.dvi autotype.dvi idlwave.dvi eudc.dvi ebrowse.dvi \
543951ab 47 pcl-cvs.dvi woman.dvi emacs-mime.dvi eshell.dvi \
d5df5512 48 speedbar.dvi tramp.dvi ses.dvi smtpmail.dvi
444c5586 49INFOSOURCES = info.texi
3ff8ce93
RS
50
51# The following rule does not work with all versions of `make'.
52.SUFFIXES: .texi .dvi
53.texi.dvi:
54 texi2dvi $<
55
56TEXI2DVI = texi2dvi
177c0ea7 57ENVADD = TEXINPUTS="$(srcdir):$(TEXINPUTS)" MAKEINFO="$(MAKEINFO) -I$(srcdir)"
3ff8ce93
RS
58
59EMACSSOURCES= \
60 ${srcdir}/emacs.texi \
78f743c7 61 ${srcdir}/doclicense.texi \
3ff8ce93
RS
62 ${srcdir}/screen.texi \
63 ${srcdir}/commands.texi \
64 ${srcdir}/entering.texi \
65 ${srcdir}/basic.texi \
66 ${srcdir}/mini.texi \
67 ${srcdir}/m-x.texi \
68 ${srcdir}/help.texi \
69 ${srcdir}/mark.texi \
70 ${srcdir}/killing.texi \
71 ${srcdir}/regs.texi \
72 ${srcdir}/display.texi \
73 ${srcdir}/search.texi \
74 ${srcdir}/fixit.texi \
75 ${srcdir}/files.texi \
76 ${srcdir}/buffers.texi \
77 ${srcdir}/windows.texi \
78 ${srcdir}/frames.texi \
32395fcf 79 ${srcdir}/mule.texi \
3ff8ce93
RS
80 ${srcdir}/major.texi \
81 ${srcdir}/indent.texi \
82 ${srcdir}/text.texi \
83 ${srcdir}/programs.texi \
84 ${srcdir}/building.texi \
78f743c7 85 ${srcdir}/maintaining.texi \
3ff8ce93
RS
86 ${srcdir}/abbrevs.texi \
87 ${srcdir}/picture.texi \
88 ${srcdir}/sending.texi \
89 ${srcdir}/rmail.texi \
90 ${srcdir}/dired.texi \
91 ${srcdir}/calendar.texi \
92 ${srcdir}/misc.texi \
93 ${srcdir}/custom.texi \
94 ${srcdir}/trouble.texi \
95 ${srcdir}/cmdargs.texi \
78f743c7 96 ${srcdir}/xresources.texi \
3ff8ce93 97 ${srcdir}/anti.texi \
78f743c7 98 ${srcdir}/macos.texi \
11f7f688 99 ${srcdir}/msdog.texi \
3ff8ce93 100 ${srcdir}/gnu.texi \
11f7f688 101 ${srcdir}/glossary.texi \
0d79e1ab
LT
102 ${srcdir}/ack.texi \
103 ${srcdir}/kmacro.texi
3ff8ce93
RS
104
105info: $(INFO_TARGETS)
106
107dvi: $(DVI_TARGETS)
108
e8edd7c5
RS
109# Note that all the Info targets build the Info files
110# in srcdir. There is no provision for Info files
111# to exist in the build directory.
112# In a distribution of Emacs, the Info files should be up to date.
113
7c836af3 114# The following target uses an explicit -o switch to work around
db921254
EZ
115# the @setfilename directive in info.texi, which is required for
116# the Texinfo distribution.
117
3ff8ce93 118../info/info: ${INFOSOURCES}
db921254 119 cd $(srcdir); $(MAKEINFO) --no-split info.texi -o $@
3ff8ce93
RS
120
121info.dvi: ${INFOSOURCES}
2ca250f9 122 $(ENVADD) $(TEXI2DVI) ${srcdir}/info.texi
3ff8ce93
RS
123
124../info/emacs: ${EMACSSOURCES}
b9aed9ca 125 cd $(srcdir); $(MAKEINFO) emacs.texi
3ff8ce93
RS
126
127emacs.dvi: ${EMACSSOURCES}
2ca250f9 128 $(ENVADD) $(TEXI2DVI) ${srcdir}/emacs.texi
3ff8ce93 129
0a8ad7c4
EZ
130# This target is here so you could easily get the list of the *.texi
131# files which belong to the Emacs manual (as opposed to the separate
132# manuals for CL, CC Mode, Ebrowse, etc.). With this target, you can
133# say things like "grep foo `make emacsman`".
134emacsman:
135 @echo $(EMACSSOURCES)
136
0aa97803 137../info/ccmode: cc-mode.texi
b9aed9ca 138 cd $(srcdir); $(MAKEINFO) cc-mode.texi
40bb1f49 139cc-mode.dvi: cc-mode.texi
2ca250f9 140 $(ENVADD) $(TEXI2DVI) ${srcdir}/cc-mode.texi
40bb1f49 141
a226b66d
GM
142../info/ada-mode: ada-mode.texi
143 cd $(srcdir); $(MAKEINFO) ada-mode.texi
144ada-mode.dvi: ada-mode.texi
145 $(ENVADD) $(TEXI2DVI) ${srcdir}/ada-mode.texi
146
6684834d
SM
147../info/pcl-cvs: pcl-cvs.texi
148 cd $(srcdir); $(MAKEINFO) pcl-cvs.texi
149pcl-cvs.dvi: pcl-cvs.texi
150 $(ENVADD) $(TEXI2DVI) ${srcdir}/pcl-cvs.texi
151
572a0c97
JW
152../info/eshell: eshell.texi
153 cd $(srcdir); $(MAKEINFO) eshell.texi
154eshell.dvi: eshell.texi
155 $(ENVADD) $(TEXI2DVI) ${srcdir}/eshell.texi
156
3ff8ce93 157../info/cl: cl.texi
b9aed9ca 158 cd $(srcdir); $(MAKEINFO) cl.texi
3ff8ce93 159cl.dvi: cl.texi
2ca250f9 160 $(ENVADD) $(TEXI2DVI) ${srcdir}/cl.texi
3ff8ce93
RS
161
162../info/dired-x: dired-x.texi
b9aed9ca 163 cd $(srcdir); $(MAKEINFO) dired-x.texi
3ff8ce93 164dired-x.dvi: dired-x.texi
2ca250f9 165 $(ENVADD) $(TEXI2DVI) ${srcdir}/dired-x.texi
3ff8ce93 166
11022425 167../info/ediff: ediff.texi
b9aed9ca 168 cd $(srcdir); $(MAKEINFO) ediff.texi
11022425 169ediff.dvi: ediff.texi
2ca250f9 170 $(ENVADD) $(TEXI2DVI) ${srcdir}/ediff.texi
11022425 171
3ff8ce93 172../info/forms: forms.texi
b9aed9ca 173 cd $(srcdir); $(MAKEINFO) forms.texi
3ff8ce93 174forms.dvi: forms.texi
2ca250f9 175 $(ENVADD) $(TEXI2DVI) ${srcdir}/forms.texi
3ff8ce93 176
5f016f40
PE
177../info/gnus: gnus.texi
178 cd $(srcdir); $(MAKEINFO) gnus.texi
179gnus.dvi: gnus.texi
177c0ea7 180 sed -e '/@iflatex/,/@end iflatex/d' ${srcdir}/gnus.texi > gnustmp.texi
55c875c2
DL
181 $(ENVADD) $(TEXI2DVI) gnustmp.texi
182 cp gnustmp.dvi $*.dvi
183 rm gnustmp.*
5f016f40
PE
184
185../info/message: message.texi
186 cd $(srcdir); $(MAKEINFO) message.texi
187message.dvi: message.texi
2ca250f9 188 $(ENVADD) $(TEXI2DVI) ${srcdir}/message.texi
5f016f40 189
f32cdadd 190../info/mh-e: mh-e.texi
b9aed9ca 191 cd $(srcdir); $(MAKEINFO) mh-e.texi
f32cdadd 192mh-e.dvi: mh-e.texi
2ca250f9 193 $(ENVADD) $(TEXI2DVI) ${srcdir}/mh-e.texi
f32cdadd 194
cf96540d
RS
195../info/reftex: reftex.texi
196 cd $(srcdir); $(MAKEINFO) reftex.texi
197reftex.dvi: reftex.texi
2ca250f9 198 $(ENVADD) $(TEXI2DVI) ${srcdir}/reftex.texi
cf96540d 199
3ff8ce93 200../info/sc: sc.texi
b9aed9ca 201 cd $(srcdir); $(MAKEINFO) sc.texi
3ff8ce93 202sc.dvi: sc.texi
2ca250f9 203 $(ENVADD) $(TEXI2DVI) ${srcdir}/sc.texi
3ff8ce93
RS
204
205../info/vip: vip.texi
b9aed9ca 206 cd $(srcdir); $(MAKEINFO) vip.texi
3ff8ce93 207vip.dvi: vip.texi
2ca250f9 208 $(ENVADD) $(TEXI2DVI) ${srcdir}/vip.texi
3ff8ce93 209
5f016f40
PE
210../info/viper: viper.texi
211 cd $(srcdir); $(MAKEINFO) viper.texi
212viper.dvi: viper.texi
2ca250f9 213 $(ENVADD) $(TEXI2DVI) ${srcdir}/viper.texi
168054a6 214
791f12e4
PA
215../info/widget: widget.texi
216 cd $(srcdir); $(MAKEINFO) widget.texi
217widget.dvi: widget.texi
2ca250f9 218 $(ENVADD) $(TEXI2DVI) ${srcdir}/widget.texi
791f12e4 219
429fc7c6 220../info/efaq: faq.texi
84e7cd78
DL
221 cd $(srcdir); $(MAKEINFO) faq.texi
222faq.dvi: faq.texi
223 $(ENVADD) $(TEXI2DVI) ${srcdir}/faq.texi
224
3ff8ce93 225../etc/GNU: gnu1.texi gnu.texi
2ca250f9 226 cd $(srcdir) && makeinfo --no-headers -o ../etc/GNU gnu1.texi
3ff8ce93 227
6bfff064
DL
228../info/autotype: autotype.texi
229 cd $(srcdir); $(MAKEINFO) autotype.texi
230autotype.dvi: autotype.texi
231 $(ENVADD) $(TEXI2DVI) ${srcdir}/autotype.texi
232
1128d4c6
EZ
233../info/calc: calc.texi
234 cd $(srcdir); $(MAKEINFO) calc.texi
ef0ce4e0
EZ
235
236calc.dvi: calc.texi
237 $(ENVADD) $(TEXI2DVI) ${srcdir}/calc.texi
1128d4c6 238
73ec1670
EZ
239# This is produced with --no-split to avoid making files whose
240# names clash on DOS 8+3 filesystems
4598da60 241../info/idlwave: idlwave.texi
73ec1670 242 cd $(srcdir); $(MAKEINFO) --no-split idlwave.texi
4598da60
EZ
243idlwave.dvi: idlwave.texi
244 $(ENVADD) $(TEXI2DVI) ${srcdir}/idlwave.texi
245
20ed8664
GM
246../info/eudc: eudc.texi
247 cd $(srcdir); $(MAKEINFO) eudc.texi
248eudc.dvi: eudc.texi
249 $(ENVADD) $(TEXI2DVI) ${srcdir}/eudc.texi
250
2f155bc2
GM
251../info/ebrowse: ebrowse.texi
252 cd $(srcdir); $(MAKEINFO) ebrowse.texi
253ebrowse.dvi: ebrowse.texi
254 $(ENVADD) $(TEXI2DVI) ${srcdir}/ebrowse.texi
255
db2672fe
EZ
256../info/woman: woman.texi
257 cd $(srcdir); $(MAKEINFO) woman.texi
258woman.dvi: woman.texi
259 $(ENVADD) $(TEXI2DVI) ${srcdir}/woman.texi
260
543951ab
EL
261../info/speedbar: speedbar.texi
262 cd $(srcdir); $(MAKEINFO) speedbar.texi
263speedbar.dvi: speedbar.texi
264 $(ENVADD) $(TEXI2DVI) ${srcdir}/speedbar.texi
82bb16f8
DL
265
266../info/emacs-mime: emacs-mime.texi
267 cd $(srcdir); $(MAKEINFO) emacs-mime.texi
268emacs-mime.dvi: emacs-mime.texi
269 $(ENVADD) $(TEXI2DVI) ${srcdir}/emacs-mime.texi
270
d591a834 271../info/tramp: tramp.texi
b1a2b924 272 cd $(srcdir); $(MAKEINFO) -D emacs tramp.texi
d591a834
KG
273tramp.dvi: tramp.texi
274 $(ENVADD) $(TEXI2DVI) ${srcdir}/tramp.texi
275
7ed9159a
JY
276../info/ses: ses.texi
277 cd $(srcdir); $(MAKEINFO) ses.texi
278ses.dvi: ses.texi
279 $(ENVADD) $(TEXI2DVI) ${srcdir}/ses.texi
280
d5df5512
SJ
281../info/smtpmail: smtpmail.texi
282 cd $(srcdir); $(MAKEINFO) smtpmail.texi
283smtpmail.dvi: smtpmail.texi
284 $(ENVADD) $(TEXI2DVI) ${srcdir}/smtpmail.texi
285
3ff8ce93 286mostlyclean:
8da1a051 287 rm -f *.log *.cp *.fn *.ky *.pg *.vr core *.tp *.core gnustmp.*
3ff8ce93
RS
288
289clean: mostlyclean
290 rm -f *.dvi
291
292distclean: clean
293
294maintainer-clean: distclean
8da1a051 295 rm -f *.aux *.cps *.fns *.kys *.pgs *.vrs *.toc
3ff8ce93
RS
296# Don't delete these, because they are outside the current directory.
297# for file in $(INFO_TARGETS); do rm -f $${file}*; done
298
299
300# Formerly this directory had texindex.c and getopt.c in it
301# and this makefile built them to make texindex.
302# That caused trouble because this is run entirely in the source directory.
303# Since we expect to get texi2dvi from elsewhere,
304# it is ok to expect texindex from elsewhere also.
ab5796a9
MB
305
306# arch-tag: 19cdb89e-4acb-448e-b0cc-2ddc05948ee2