10686
|
1 #### Makefile for the Emacs Manual and other documentation.
|
|
2
|
49927
|
3 # Copyright (C) 1994, 1996, 1997, 1998, 1999, 2000, 2001, 2003
|
36226
|
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
|
10686
|
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@
|
52429
|
28 top_srcdir=@top_srcdir@
|
10686
|
29
|
|
30 # Tell make where to find source files; this is needed for the makefiles.
|
|
31 VPATH=@srcdir@
|
|
32
|
|
33
|
|
34 # The makeinfo program is part of the Texinfo distribution.
|
|
35 MAKEINFO = makeinfo
|
23820
|
36 INFO_TARGETS = ../info/emacs ../info/ccmode ../info/cl \
|
22105
|
37 ../info/dired-x ../info/ediff ../info/forms ../info/gnus \
|
|
38 ../info/info ../info/message ../info/mh-e ../info/reftex \
|
25477
|
39 ../info/sc ../info/vip ../info/viper ../info/widget \
|
40812
|
40 ../info/efaq ../info/ada-mode ../info/autotype ../info/calc \
|
30661
|
41 ../info/idlwave ../info/eudc ../info/ebrowse ../info/pcl-cvs \
|
32675
|
42 ../info/woman ../info/emacs-mime ../info/eshell \
|
49927
|
43 ../info/speedbar ../info/tramp ../info/ses ../info/smtpmail
|
42523
|
44 DVI_TARGETS = emacs.dvi calc.dvi cc-mode.dvi cl.dvi dired-x.dvi \
|
20863
|
45 ediff.dvi forms.dvi gnus.dvi message.dvi mh-e.dvi \
|
25914
|
46 reftex.dvi sc.dvi vip.dvi viper.dvi widget.dvi faq.dvi \
|
29350
|
47 ada-mode.dvi autotype.dvi idlwave.dvi eudc.dvi ebrowse.dvi \
|
32675
|
48 pcl-cvs.dvi woman.dvi emacs-mime.dvi eshell.dvi \
|
49927
|
49 speedbar.dvi tramp.dvi ses.dvi smtpmail.dvi
|
33504
|
50 INFOSOURCES = info.texi
|
10686
|
51
|
|
52 # The following rule does not work with all versions of `make'.
|
|
53 .SUFFIXES: .texi .dvi
|
|
54 .texi.dvi:
|
|
55 texi2dvi $<
|
|
56
|
|
57 TEXI2DVI = texi2dvi
|
49600
|
58 ENVADD = TEXINPUTS="$(srcdir):$(TEXINPUTS)" MAKEINFO="$(MAKEINFO) -I$(srcdir)"
|
10686
|
59
|
|
60 EMACSSOURCES= \
|
|
61 ${srcdir}/emacs.texi \
|
42207
|
62 ${srcdir}/doclicense.texi \
|
10686
|
63 ${srcdir}/screen.texi \
|
|
64 ${srcdir}/commands.texi \
|
|
65 ${srcdir}/entering.texi \
|
|
66 ${srcdir}/basic.texi \
|
|
67 ${srcdir}/mini.texi \
|
|
68 ${srcdir}/m-x.texi \
|
|
69 ${srcdir}/help.texi \
|
|
70 ${srcdir}/mark.texi \
|
|
71 ${srcdir}/killing.texi \
|
|
72 ${srcdir}/regs.texi \
|
|
73 ${srcdir}/display.texi \
|
|
74 ${srcdir}/search.texi \
|
|
75 ${srcdir}/fixit.texi \
|
|
76 ${srcdir}/files.texi \
|
|
77 ${srcdir}/buffers.texi \
|
|
78 ${srcdir}/windows.texi \
|
|
79 ${srcdir}/frames.texi \
|
21965
|
80 ${srcdir}/mule.texi \
|
10686
|
81 ${srcdir}/major.texi \
|
|
82 ${srcdir}/indent.texi \
|
|
83 ${srcdir}/text.texi \
|
|
84 ${srcdir}/programs.texi \
|
|
85 ${srcdir}/building.texi \
|
42207
|
86 ${srcdir}/maintaining.texi \
|
10686
|
87 ${srcdir}/abbrevs.texi \
|
|
88 ${srcdir}/picture.texi \
|
|
89 ${srcdir}/sending.texi \
|
|
90 ${srcdir}/rmail.texi \
|
|
91 ${srcdir}/dired.texi \
|
|
92 ${srcdir}/calendar.texi \
|
|
93 ${srcdir}/misc.texi \
|
|
94 ${srcdir}/custom.texi \
|
|
95 ${srcdir}/trouble.texi \
|
|
96 ${srcdir}/cmdargs.texi \
|
42207
|
97 ${srcdir}/xresources.texi \
|
10686
|
98 ${srcdir}/anti.texi \
|
42207
|
99 ${srcdir}/macos.texi \
|
21968
|
100 ${srcdir}/msdog.texi \
|
10686
|
101 ${srcdir}/gnu.texi \
|
21968
|
102 ${srcdir}/glossary.texi \
|
52237
|
103 ${srcdir}/ack.texi \
|
|
104 ${srcdir}/kmacro.texi
|
10686
|
105
|
52911
|
106 info: $(top_srcdir)/info $(INFO_TARGETS)
|
|
107
|
52429
|
108 $(top_srcdir)/info:
|
|
109 mkdir $@
|
|
110
|
10686
|
111 dvi: $(DVI_TARGETS)
|
|
112
|
15467
5211a1402647
(All info targets): Specify $(srcdir) in input files. Specify -I option.
Richard M. Stallman <rms@gnu.org>
diff
changeset
|
113 # Note that all the Info targets build the Info files
|
5211a1402647
(All info targets): Specify $(srcdir) in input files. Specify -I option.
Richard M. Stallman <rms@gnu.org>
diff
changeset
|
114 # in srcdir. There is no provision for Info files
|
5211a1402647
(All info targets): Specify $(srcdir) in input files. Specify -I option.
Richard M. Stallman <rms@gnu.org>
diff
changeset
|
115 # to exist in the build directory.
|
5211a1402647
(All info targets): Specify $(srcdir) in input files. Specify -I option.
Richard M. Stallman <rms@gnu.org>
diff
changeset
|
116 # In a distribution of Emacs, the Info files should be up to date.
|
5211a1402647
(All info targets): Specify $(srcdir) in input files. Specify -I option.
Richard M. Stallman <rms@gnu.org>
diff
changeset
|
117
|
37475
|
118 # The following target uses an explicit -o switch to work around
|
37343
|
119 # the @setfilename directive in info.texi, which is required for
|
|
120 # the Texinfo distribution.
|
|
121
|
10686
|
122 ../info/info: ${INFOSOURCES}
|
37343
|
123 cd $(srcdir); $(MAKEINFO) --no-split info.texi -o $@
|
10686
|
124
|
|
125 info.dvi: ${INFOSOURCES}
|
21392
|
126 $(ENVADD) $(TEXI2DVI) ${srcdir}/info.texi
|
10686
|
127
|
|
128 ../info/emacs: ${EMACSSOURCES}
|
15468
|
129 cd $(srcdir); $(MAKEINFO) emacs.texi
|
10686
|
130
|
|
131 emacs.dvi: ${EMACSSOURCES}
|
21392
|
132 $(ENVADD) $(TEXI2DVI) ${srcdir}/emacs.texi
|
10686
|
133
|
41123
|
134 # This target is here so you could easily get the list of the *.texi
|
|
135 # files which belong to the Emacs manual (as opposed to the separate
|
|
136 # manuals for CL, CC Mode, Ebrowse, etc.). With this target, you can
|
|
137 # say things like "grep foo `make emacsman`".
|
|
138 emacsman:
|
|
139 @echo $(EMACSSOURCES)
|
|
140
|
14103
|
141 ../info/ccmode: cc-mode.texi
|
15468
|
142 cd $(srcdir); $(MAKEINFO) cc-mode.texi
|
13666
|
143 cc-mode.dvi: cc-mode.texi
|
21392
|
144 $(ENVADD) $(TEXI2DVI) ${srcdir}/cc-mode.texi
|
13666
|
145
|
25914
|
146 ../info/ada-mode: ada-mode.texi
|
|
147 cd $(srcdir); $(MAKEINFO) ada-mode.texi
|
|
148 ada-mode.dvi: ada-mode.texi
|
|
149 $(ENVADD) $(TEXI2DVI) ${srcdir}/ada-mode.texi
|
|
150
|
29350
|
151 ../info/pcl-cvs: pcl-cvs.texi
|
|
152 cd $(srcdir); $(MAKEINFO) pcl-cvs.texi
|
|
153 pcl-cvs.dvi: pcl-cvs.texi
|
|
154 $(ENVADD) $(TEXI2DVI) ${srcdir}/pcl-cvs.texi
|
|
155
|
32450
|
156 ../info/eshell: eshell.texi
|
|
157 cd $(srcdir); $(MAKEINFO) eshell.texi
|
|
158 eshell.dvi: eshell.texi
|
|
159 $(ENVADD) $(TEXI2DVI) ${srcdir}/eshell.texi
|
|
160
|
10686
|
161 ../info/cl: cl.texi
|
15468
|
162 cd $(srcdir); $(MAKEINFO) cl.texi
|
10686
|
163 cl.dvi: cl.texi
|
21392
|
164 $(ENVADD) $(TEXI2DVI) ${srcdir}/cl.texi
|
10686
|
165
|
|
166 ../info/dired-x: dired-x.texi
|
15468
|
167 cd $(srcdir); $(MAKEINFO) dired-x.texi
|
10686
|
168 dired-x.dvi: dired-x.texi
|
21392
|
169 $(ENVADD) $(TEXI2DVI) ${srcdir}/dired-x.texi
|
10686
|
170
|
12384
|
171 ../info/ediff: ediff.texi
|
15468
|
172 cd $(srcdir); $(MAKEINFO) ediff.texi
|
12384
|
173 ediff.dvi: ediff.texi
|
21392
|
174 $(ENVADD) $(TEXI2DVI) ${srcdir}/ediff.texi
|
12384
|
175
|
10686
|
176 ../info/forms: forms.texi
|
15468
|
177 cd $(srcdir); $(MAKEINFO) forms.texi
|
10686
|
178 forms.dvi: forms.texi
|
21392
|
179 $(ENVADD) $(TEXI2DVI) ${srcdir}/forms.texi
|
10686
|
180
|
19968
|
181 ../info/gnus: gnus.texi
|
|
182 cd $(srcdir); $(MAKEINFO) gnus.texi
|
|
183 gnus.dvi: gnus.texi
|
49600
|
184 sed -e '/@iflatex/,/@end iflatex/d' ${srcdir}/gnus.texi > gnustmp.texi
|
34558
|
185 $(ENVADD) $(TEXI2DVI) gnustmp.texi
|
|
186 cp gnustmp.dvi $*.dvi
|
|
187 rm gnustmp.*
|
19968
|
188
|
|
189 ../info/message: message.texi
|
|
190 cd $(srcdir); $(MAKEINFO) message.texi
|
|
191 message.dvi: message.texi
|
21392
|
192 $(ENVADD) $(TEXI2DVI) ${srcdir}/message.texi
|
19968
|
193
|
11478
|
194 ../info/mh-e: mh-e.texi
|
15468
|
195 cd $(srcdir); $(MAKEINFO) mh-e.texi
|
11478
|
196 mh-e.dvi: mh-e.texi
|
21392
|
197 $(ENVADD) $(TEXI2DVI) ${srcdir}/mh-e.texi
|
11478
|
198
|
20863
|
199 ../info/reftex: reftex.texi
|
|
200 cd $(srcdir); $(MAKEINFO) reftex.texi
|
|
201 reftex.dvi: reftex.texi
|
21392
|
202 $(ENVADD) $(TEXI2DVI) ${srcdir}/reftex.texi
|
20863
|
203
|
10686
|
204 ../info/sc: sc.texi
|
15468
|
205 cd $(srcdir); $(MAKEINFO) sc.texi
|
10686
|
206 sc.dvi: sc.texi
|
21392
|
207 $(ENVADD) $(TEXI2DVI) ${srcdir}/sc.texi
|
10686
|
208
|
|
209 ../info/vip: vip.texi
|
15468
|
210 cd $(srcdir); $(MAKEINFO) vip.texi
|
10686
|
211 vip.dvi: vip.texi
|
21392
|
212 $(ENVADD) $(TEXI2DVI) ${srcdir}/vip.texi
|
10686
|
213
|
19968
|
214 ../info/viper: viper.texi
|
|
215 cd $(srcdir); $(MAKEINFO) viper.texi
|
|
216 viper.dvi: viper.texi
|
21392
|
217 $(ENVADD) $(TEXI2DVI) ${srcdir}/viper.texi
|
15525
|
218
|
17335
|
219 ../info/widget: widget.texi
|
|
220 cd $(srcdir); $(MAKEINFO) widget.texi
|
|
221 widget.dvi: widget.texi
|
21392
|
222 $(ENVADD) $(TEXI2DVI) ${srcdir}/widget.texi
|
17335
|
223
|
27179
|
224 ../info/efaq: faq.texi
|
25477
|
225 cd $(srcdir); $(MAKEINFO) faq.texi
|
|
226 faq.dvi: faq.texi
|
|
227 $(ENVADD) $(TEXI2DVI) ${srcdir}/faq.texi
|
|
228
|
10686
|
229 ../etc/GNU: gnu1.texi gnu.texi
|
21392
|
230 cd $(srcdir) && makeinfo --no-headers -o ../etc/GNU gnu1.texi
|
10686
|
231
|
26150
|
232 ../info/autotype: autotype.texi
|
|
233 cd $(srcdir); $(MAKEINFO) autotype.texi
|
|
234 autotype.dvi: autotype.texi
|
|
235 $(ENVADD) $(TEXI2DVI) ${srcdir}/autotype.texi
|
|
236
|
40812
|
237 ../info/calc: calc.texi
|
|
238 cd $(srcdir); $(MAKEINFO) calc.texi
|
42523
|
239
|
|
240 calc.dvi: calc.texi
|
|
241 $(ENVADD) $(TEXI2DVI) ${srcdir}/calc.texi
|
40812
|
242
|
34739
|
243 # This is produced with --no-split to avoid making files whose
|
|
244 # names clash on DOS 8+3 filesystems
|
27104
|
245 ../info/idlwave: idlwave.texi
|
34739
|
246 cd $(srcdir); $(MAKEINFO) --no-split idlwave.texi
|
27104
|
247 idlwave.dvi: idlwave.texi
|
|
248 $(ENVADD) $(TEXI2DVI) ${srcdir}/idlwave.texi
|
|
249
|
27314
|
250 ../info/eudc: eudc.texi
|
|
251 cd $(srcdir); $(MAKEINFO) eudc.texi
|
|
252 eudc.dvi: eudc.texi
|
|
253 $(ENVADD) $(TEXI2DVI) ${srcdir}/eudc.texi
|
|
254
|
28866
|
255 ../info/ebrowse: ebrowse.texi
|
|
256 cd $(srcdir); $(MAKEINFO) ebrowse.texi
|
|
257 ebrowse.dvi: ebrowse.texi
|
|
258 $(ENVADD) $(TEXI2DVI) ${srcdir}/ebrowse.texi
|
|
259
|
30661
|
260 ../info/woman: woman.texi
|
|
261 cd $(srcdir); $(MAKEINFO) woman.texi
|
|
262 woman.dvi: woman.texi
|
|
263 $(ENVADD) $(TEXI2DVI) ${srcdir}/woman.texi
|
|
264
|
32675
|
265 ../info/speedbar: speedbar.texi
|
|
266 cd $(srcdir); $(MAKEINFO) speedbar.texi
|
|
267 speedbar.dvi: speedbar.texi
|
|
268 $(ENVADD) $(TEXI2DVI) ${srcdir}/speedbar.texi
|
31854
|
269
|
|
270 ../info/emacs-mime: emacs-mime.texi
|
|
271 cd $(srcdir); $(MAKEINFO) emacs-mime.texi
|
|
272 emacs-mime.dvi: emacs-mime.texi
|
|
273 $(ENVADD) $(TEXI2DVI) ${srcdir}/emacs-mime.texi
|
|
274
|
45860
|
275 ../info/tramp: tramp.texi
|
50338
|
276 cd $(srcdir); $(MAKEINFO) -D emacs tramp.texi
|
45860
|
277 tramp.dvi: tramp.texi
|
|
278 $(ENVADD) $(TEXI2DVI) ${srcdir}/tramp.texi
|
|
279
|
47667
|
280 ../info/ses: ses.texi
|
|
281 cd $(srcdir); $(MAKEINFO) ses.texi
|
|
282 ses.dvi: ses.texi
|
|
283 $(ENVADD) $(TEXI2DVI) ${srcdir}/ses.texi
|
|
284
|
49927
|
285 ../info/smtpmail: smtpmail.texi
|
|
286 cd $(srcdir); $(MAKEINFO) smtpmail.texi
|
|
287 smtpmail.dvi: smtpmail.texi
|
|
288 $(ENVADD) $(TEXI2DVI) ${srcdir}/smtpmail.texi
|
|
289
|
10686
|
290 mostlyclean:
|
36548
|
291 rm -f *.log *.cp *.fn *.ky *.pg *.vr core *.tp *.core gnustmp.*
|
10686
|
292
|
|
293 clean: mostlyclean
|
|
294 rm -f *.dvi
|
|
295
|
|
296 distclean: clean
|
|
297
|
|
298 maintainer-clean: distclean
|
36548
|
299 rm -f *.aux *.cps *.fns *.kys *.pgs *.vrs *.toc
|
10686
|
300 # Don't delete these, because they are outside the current directory.
|
|
301 # for file in $(INFO_TARGETS); do rm -f $${file}*; done
|
|
302
|
|
303
|
|
304 # Formerly this directory had texindex.c and getopt.c in it
|
|
305 # and this makefile built them to make texindex.
|
|
306 # That caused trouble because this is run entirely in the source directory.
|
|
307 # Since we expect to get texi2dvi from elsewhere,
|
|
308 # it is ok to expect texindex from elsewhere also.
|
52401
|
309
|
|
310 # arch-tag: 19cdb89e-4acb-448e-b0cc-2ddc05948ee2
|