Commit | Line | Data |
---|---|---|
3ff8ce93 RS |
1 | #### Makefile for the Emacs Manual and other documentation. |
2 | ||
b3ae7a0a GM |
3 | # Copyright (C) 1994, 1996, 1997, 1998, 1999, 2000, 2001 |
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. | |
27 | srcdir=@srcdir@ | |
28 | ||
29 | # Tell make where to find source files; this is needed for the makefiles. | |
30 | VPATH=@srcdir@ | |
31 | ||
32 | ||
33 | # The makeinfo program is part of the Texinfo distribution. | |
34 | MAKEINFO = makeinfo | |
04cf41b4 | 35 | INFO_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 \ |
429fc7c6 | 39 | ../info/efaq ../info/ada-mode ../info/autotype \ |
db2672fe | 40 | ../info/idlwave ../info/eudc ../info/ebrowse ../info/pcl-cvs \ |
543951ab EL |
41 | ../info/woman ../info/emacs-mime ../info/eshell \ |
42 | ../info/speedbar | |
04cf41b4 | 43 | DVI_TARGETS = emacs.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 EL |
47 | pcl-cvs.dvi woman.dvi emacs-mime.dvi eshell.dvi \ |
48 | speedbar.dvi | |
444c5586 | 49 | INFOSOURCES = 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 | ||
56 | TEXI2DVI = texi2dvi | |
2ca250f9 | 57 | ENVADD = TEXINPUTS="$(srcdir):$(TEXINPUTS)" MAKEINFO="$(MAKEINFO) -I$(srcdir)" |
3ff8ce93 RS |
58 | |
59 | EMACSSOURCES= \ | |
60 | ${srcdir}/emacs.texi \ | |
61 | ${srcdir}/screen.texi \ | |
62 | ${srcdir}/commands.texi \ | |
63 | ${srcdir}/entering.texi \ | |
64 | ${srcdir}/basic.texi \ | |
65 | ${srcdir}/mini.texi \ | |
66 | ${srcdir}/m-x.texi \ | |
67 | ${srcdir}/help.texi \ | |
68 | ${srcdir}/mark.texi \ | |
69 | ${srcdir}/killing.texi \ | |
70 | ${srcdir}/regs.texi \ | |
71 | ${srcdir}/display.texi \ | |
72 | ${srcdir}/search.texi \ | |
73 | ${srcdir}/fixit.texi \ | |
74 | ${srcdir}/files.texi \ | |
75 | ${srcdir}/buffers.texi \ | |
76 | ${srcdir}/windows.texi \ | |
77 | ${srcdir}/frames.texi \ | |
32395fcf | 78 | ${srcdir}/mule.texi \ |
3ff8ce93 RS |
79 | ${srcdir}/major.texi \ |
80 | ${srcdir}/indent.texi \ | |
81 | ${srcdir}/text.texi \ | |
82 | ${srcdir}/programs.texi \ | |
83 | ${srcdir}/building.texi \ | |
84 | ${srcdir}/abbrevs.texi \ | |
85 | ${srcdir}/picture.texi \ | |
86 | ${srcdir}/sending.texi \ | |
87 | ${srcdir}/rmail.texi \ | |
88 | ${srcdir}/dired.texi \ | |
89 | ${srcdir}/calendar.texi \ | |
90 | ${srcdir}/misc.texi \ | |
91 | ${srcdir}/custom.texi \ | |
92 | ${srcdir}/trouble.texi \ | |
93 | ${srcdir}/cmdargs.texi \ | |
94 | ${srcdir}/anti.texi \ | |
11f7f688 | 95 | ${srcdir}/msdog.texi \ |
3ff8ce93 | 96 | ${srcdir}/gnu.texi \ |
11f7f688 RS |
97 | ${srcdir}/glossary.texi \ |
98 | ${srcdir}/ack.texi | |
3ff8ce93 RS |
99 | |
100 | info: $(INFO_TARGETS) | |
101 | ||
102 | dvi: $(DVI_TARGETS) | |
103 | ||
e8edd7c5 RS |
104 | # Note that all the Info targets build the Info files |
105 | # in srcdir. There is no provision for Info files | |
106 | # to exist in the build directory. | |
107 | # In a distribution of Emacs, the Info files should be up to date. | |
108 | ||
db921254 EZ |
109 | # The following target use an explicit -o switch to work around |
110 | # the @setfilename directive in info.texi, which is required for | |
111 | # the Texinfo distribution. | |
112 | ||
3ff8ce93 | 113 | ../info/info: ${INFOSOURCES} |
db921254 | 114 | cd $(srcdir); $(MAKEINFO) --no-split info.texi -o $@ |
3ff8ce93 RS |
115 | |
116 | info.dvi: ${INFOSOURCES} | |
2ca250f9 | 117 | $(ENVADD) $(TEXI2DVI) ${srcdir}/info.texi |
3ff8ce93 RS |
118 | |
119 | ../info/emacs: ${EMACSSOURCES} | |
b9aed9ca | 120 | cd $(srcdir); $(MAKEINFO) emacs.texi |
3ff8ce93 RS |
121 | |
122 | emacs.dvi: ${EMACSSOURCES} | |
2ca250f9 | 123 | $(ENVADD) $(TEXI2DVI) ${srcdir}/emacs.texi |
3ff8ce93 | 124 | |
0aa97803 | 125 | ../info/ccmode: cc-mode.texi |
b9aed9ca | 126 | cd $(srcdir); $(MAKEINFO) cc-mode.texi |
40bb1f49 | 127 | cc-mode.dvi: cc-mode.texi |
2ca250f9 | 128 | $(ENVADD) $(TEXI2DVI) ${srcdir}/cc-mode.texi |
40bb1f49 | 129 | |
a226b66d GM |
130 | ../info/ada-mode: ada-mode.texi |
131 | cd $(srcdir); $(MAKEINFO) ada-mode.texi | |
132 | ada-mode.dvi: ada-mode.texi | |
133 | $(ENVADD) $(TEXI2DVI) ${srcdir}/ada-mode.texi | |
134 | ||
6684834d SM |
135 | ../info/pcl-cvs: pcl-cvs.texi |
136 | cd $(srcdir); $(MAKEINFO) pcl-cvs.texi | |
137 | pcl-cvs.dvi: pcl-cvs.texi | |
138 | $(ENVADD) $(TEXI2DVI) ${srcdir}/pcl-cvs.texi | |
139 | ||
572a0c97 JW |
140 | ../info/eshell: eshell.texi |
141 | cd $(srcdir); $(MAKEINFO) eshell.texi | |
142 | eshell.dvi: eshell.texi | |
143 | $(ENVADD) $(TEXI2DVI) ${srcdir}/eshell.texi | |
144 | ||
3ff8ce93 | 145 | ../info/cl: cl.texi |
b9aed9ca | 146 | cd $(srcdir); $(MAKEINFO) cl.texi |
3ff8ce93 | 147 | cl.dvi: cl.texi |
2ca250f9 | 148 | $(ENVADD) $(TEXI2DVI) ${srcdir}/cl.texi |
3ff8ce93 RS |
149 | |
150 | ../info/dired-x: dired-x.texi | |
b9aed9ca | 151 | cd $(srcdir); $(MAKEINFO) dired-x.texi |
3ff8ce93 | 152 | dired-x.dvi: dired-x.texi |
2ca250f9 | 153 | $(ENVADD) $(TEXI2DVI) ${srcdir}/dired-x.texi |
3ff8ce93 | 154 | |
11022425 | 155 | ../info/ediff: ediff.texi |
b9aed9ca | 156 | cd $(srcdir); $(MAKEINFO) ediff.texi |
11022425 | 157 | ediff.dvi: ediff.texi |
2ca250f9 | 158 | $(ENVADD) $(TEXI2DVI) ${srcdir}/ediff.texi |
11022425 | 159 | |
3ff8ce93 | 160 | ../info/forms: forms.texi |
b9aed9ca | 161 | cd $(srcdir); $(MAKEINFO) forms.texi |
3ff8ce93 | 162 | forms.dvi: forms.texi |
2ca250f9 | 163 | $(ENVADD) $(TEXI2DVI) ${srcdir}/forms.texi |
3ff8ce93 | 164 | |
5f016f40 PE |
165 | ../info/gnus: gnus.texi |
166 | cd $(srcdir); $(MAKEINFO) gnus.texi | |
167 | gnus.dvi: gnus.texi | |
55c875c2 DL |
168 | sed -e '/@iflatex/,/@end iflatex/d' ${srcdir}/gnus.texi > gnustmp.texi |
169 | $(ENVADD) $(TEXI2DVI) gnustmp.texi | |
170 | cp gnustmp.dvi $*.dvi | |
171 | rm gnustmp.* | |
5f016f40 PE |
172 | |
173 | ../info/message: message.texi | |
174 | cd $(srcdir); $(MAKEINFO) message.texi | |
175 | message.dvi: message.texi | |
2ca250f9 | 176 | $(ENVADD) $(TEXI2DVI) ${srcdir}/message.texi |
5f016f40 | 177 | |
f32cdadd | 178 | ../info/mh-e: mh-e.texi |
b9aed9ca | 179 | cd $(srcdir); $(MAKEINFO) mh-e.texi |
f32cdadd | 180 | mh-e.dvi: mh-e.texi |
2ca250f9 | 181 | $(ENVADD) $(TEXI2DVI) ${srcdir}/mh-e.texi |
f32cdadd | 182 | |
cf96540d RS |
183 | ../info/reftex: reftex.texi |
184 | cd $(srcdir); $(MAKEINFO) reftex.texi | |
185 | reftex.dvi: reftex.texi | |
2ca250f9 | 186 | $(ENVADD) $(TEXI2DVI) ${srcdir}/reftex.texi |
cf96540d | 187 | |
3ff8ce93 | 188 | ../info/sc: sc.texi |
b9aed9ca | 189 | cd $(srcdir); $(MAKEINFO) sc.texi |
3ff8ce93 | 190 | sc.dvi: sc.texi |
2ca250f9 | 191 | $(ENVADD) $(TEXI2DVI) ${srcdir}/sc.texi |
3ff8ce93 RS |
192 | |
193 | ../info/vip: vip.texi | |
b9aed9ca | 194 | cd $(srcdir); $(MAKEINFO) vip.texi |
3ff8ce93 | 195 | vip.dvi: vip.texi |
2ca250f9 | 196 | $(ENVADD) $(TEXI2DVI) ${srcdir}/vip.texi |
3ff8ce93 | 197 | |
5f016f40 PE |
198 | ../info/viper: viper.texi |
199 | cd $(srcdir); $(MAKEINFO) viper.texi | |
200 | viper.dvi: viper.texi | |
2ca250f9 | 201 | $(ENVADD) $(TEXI2DVI) ${srcdir}/viper.texi |
168054a6 | 202 | |
791f12e4 PA |
203 | ../info/widget: widget.texi |
204 | cd $(srcdir); $(MAKEINFO) widget.texi | |
205 | widget.dvi: widget.texi | |
2ca250f9 | 206 | $(ENVADD) $(TEXI2DVI) ${srcdir}/widget.texi |
791f12e4 | 207 | |
429fc7c6 | 208 | ../info/efaq: faq.texi |
84e7cd78 DL |
209 | cd $(srcdir); $(MAKEINFO) faq.texi |
210 | faq.dvi: faq.texi | |
211 | $(ENVADD) $(TEXI2DVI) ${srcdir}/faq.texi | |
212 | ||
3ff8ce93 | 213 | ../etc/GNU: gnu1.texi gnu.texi |
2ca250f9 | 214 | cd $(srcdir) && makeinfo --no-headers -o ../etc/GNU gnu1.texi |
3ff8ce93 | 215 | |
6bfff064 DL |
216 | ../info/autotype: autotype.texi |
217 | cd $(srcdir); $(MAKEINFO) autotype.texi | |
218 | autotype.dvi: autotype.texi | |
219 | $(ENVADD) $(TEXI2DVI) ${srcdir}/autotype.texi | |
220 | ||
73ec1670 EZ |
221 | # This is produced with --no-split to avoid making files whose |
222 | # names clash on DOS 8+3 filesystems | |
4598da60 | 223 | ../info/idlwave: idlwave.texi |
73ec1670 | 224 | cd $(srcdir); $(MAKEINFO) --no-split idlwave.texi |
4598da60 EZ |
225 | idlwave.dvi: idlwave.texi |
226 | $(ENVADD) $(TEXI2DVI) ${srcdir}/idlwave.texi | |
227 | ||
20ed8664 GM |
228 | ../info/eudc: eudc.texi |
229 | cd $(srcdir); $(MAKEINFO) eudc.texi | |
230 | eudc.dvi: eudc.texi | |
231 | $(ENVADD) $(TEXI2DVI) ${srcdir}/eudc.texi | |
232 | ||
2f155bc2 GM |
233 | ../info/ebrowse: ebrowse.texi |
234 | cd $(srcdir); $(MAKEINFO) ebrowse.texi | |
235 | ebrowse.dvi: ebrowse.texi | |
236 | $(ENVADD) $(TEXI2DVI) ${srcdir}/ebrowse.texi | |
237 | ||
db2672fe EZ |
238 | ../info/woman: woman.texi |
239 | cd $(srcdir); $(MAKEINFO) woman.texi | |
240 | woman.dvi: woman.texi | |
241 | $(ENVADD) $(TEXI2DVI) ${srcdir}/woman.texi | |
242 | ||
543951ab EL |
243 | ../info/speedbar: speedbar.texi |
244 | cd $(srcdir); $(MAKEINFO) speedbar.texi | |
245 | speedbar.dvi: speedbar.texi | |
246 | $(ENVADD) $(TEXI2DVI) ${srcdir}/speedbar.texi | |
82bb16f8 DL |
247 | |
248 | ../info/emacs-mime: emacs-mime.texi | |
249 | cd $(srcdir); $(MAKEINFO) emacs-mime.texi | |
250 | emacs-mime.dvi: emacs-mime.texi | |
251 | $(ENVADD) $(TEXI2DVI) ${srcdir}/emacs-mime.texi | |
252 | ||
3ff8ce93 | 253 | mostlyclean: |
8da1a051 | 254 | rm -f *.log *.cp *.fn *.ky *.pg *.vr core *.tp *.core gnustmp.* |
3ff8ce93 RS |
255 | |
256 | clean: mostlyclean | |
257 | rm -f *.dvi | |
258 | ||
259 | distclean: clean | |
260 | ||
261 | maintainer-clean: distclean | |
8da1a051 | 262 | rm -f *.aux *.cps *.fns *.kys *.pgs *.vrs *.toc |
3ff8ce93 RS |
263 | # Don't delete these, because they are outside the current directory. |
264 | # for file in $(INFO_TARGETS); do rm -f $${file}*; done | |
265 | ||
266 | ||
267 | # Formerly this directory had texindex.c and getopt.c in it | |
268 | # and this makefile built them to make texindex. | |
269 | # That caused trouble because this is run entirely in the source directory. | |
270 | # Since we expect to get texi2dvi from elsewhere, | |
271 | # it is ok to expect texindex from elsewhere also. |