*** empty log message ***
[emacs.git] / man / Makefile.in
blob03c664190f561b1ddbe5b32eff076592e89f0038
1 #### Makefile for the Emacs Manual and other documentation.
3 # Copyright (C) 1994, 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
4 # Free Software Foundation, Inc.
6 # This file is part of GNU Emacs.
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.
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.
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.
23 # Where to find the source code. $(srcdir) will be the man
24 # subdirectory of the source tree. This is
25 # set by the configure script's `--srcdir' option.
26 srcdir=@srcdir@
27 top_srcdir=@top_srcdir@
29 # Tell make where to find source files; this is needed for the makefiles.
30 VPATH=@srcdir@
33 # The makeinfo program is part of the Texinfo distribution.
34 # Use --force so that it generates output even if there are errors.
35 MAKEINFO = makeinfo --force
36 INFO_TARGETS = ../info/emacs ../info/emacs-xtra ../info/ccmode ../info/cl \
37 ../info/dired-x ../info/ediff ../info/forms ../info/gnus \
38 ../info/message ../info/sieve ../info/pgg ../info/emacs-mime \
39 ../info/info ../info/mh-e ../info/reftex \
40 ../info/sc ../info/vip ../info/viper ../info/widget \
41 ../info/efaq ../info/ada-mode ../info/autotype ../info/calc \
42 ../info/idlwave ../info/eudc ../info/ebrowse ../info/pcl-cvs \
43 ../info/woman ../info/eshell ../info/org ../info/url \
44 ../info/speedbar ../info/tramp ../info/ses ../info/smtpmail \
45 ../info/flymake
46 DVI_TARGETS = emacs.dvi calc.dvi cc-mode.dvi cl.dvi dired-x.dvi \
47 ediff.dvi forms.dvi gnus.dvi message.dvi emacs-mime.dvi \
48 gnus.dvi message.dvi sieve.dvi pgg.dvi mh-e.dvi \
49 reftex.dvi sc.dvi vip.dvi viper.dvi widget.dvi faq.dvi \
50 ada-mode.dvi autotype.dvi idlwave.dvi eudc.dvi ebrowse.dvi \
51 pcl-cvs.dvi woman.dvi eshell.dvi org.dvi url.dvi \
52 speedbar.dvi tramp.dvi ses.dvi smtpmail.dvi flymake.dvi \
53 emacs-xtra.dvi
54 INFOSOURCES = info.texi
56 # The following rule does not work with all versions of `make'.
57 .SUFFIXES: .texi .dvi
58 .texi.dvi:
59 texi2dvi $<
61 TEXI2DVI = texi2dvi
62 ENVADD = TEXINPUTS="$(srcdir):$(TEXINPUTS)" MAKEINFO="$(MAKEINFO) -I$(srcdir)"
64 EMACSSOURCES= \
65 ${srcdir}/emacs.texi \
66 ${srcdir}/doclicense.texi \
67 ${srcdir}/screen.texi \
68 ${srcdir}/commands.texi \
69 ${srcdir}/entering.texi \
70 ${srcdir}/basic.texi \
71 ${srcdir}/mini.texi \
72 ${srcdir}/m-x.texi \
73 ${srcdir}/help.texi \
74 ${srcdir}/mark.texi \
75 ${srcdir}/killing.texi \
76 ${srcdir}/regs.texi \
77 ${srcdir}/display.texi \
78 ${srcdir}/search.texi \
79 ${srcdir}/fixit.texi \
80 ${srcdir}/files.texi \
81 ${srcdir}/buffers.texi \
82 ${srcdir}/windows.texi \
83 ${srcdir}/frames.texi \
84 ${srcdir}/mule.texi \
85 ${srcdir}/major.texi \
86 ${srcdir}/indent.texi \
87 ${srcdir}/text.texi \
88 ${srcdir}/programs.texi \
89 ${srcdir}/building.texi \
90 ${srcdir}/maintaining.texi \
91 ${srcdir}/abbrevs.texi \
92 ${srcdir}/picture.texi \
93 ${srcdir}/sending.texi \
94 ${srcdir}/rmail.texi \
95 ${srcdir}/dired.texi \
96 ${srcdir}/calendar.texi \
97 ${srcdir}/misc.texi \
98 ${srcdir}/custom.texi \
99 ${srcdir}/trouble.texi \
100 ${srcdir}/cmdargs.texi \
101 ${srcdir}/xresources.texi \
102 ${srcdir}/anti.texi \
103 ${srcdir}/macos.texi \
104 ${srcdir}/msdog.texi \
105 ${srcdir}/gnu.texi \
106 ${srcdir}/glossary.texi \
107 ${srcdir}/ack.texi \
108 ${srcdir}/kmacro.texi
110 info: $(top_srcdir)/info $(INFO_TARGETS)
112 $(top_srcdir)/info:
113 mkdir $@
115 dvi: $(DVI_TARGETS)
117 # Note that all the Info targets build the Info files
118 # in srcdir. There is no provision for Info files
119 # to exist in the build directory.
120 # In a distribution of Emacs, the Info files should be up to date.
122 # The following target uses an explicit -o switch to work around
123 # the @setfilename directive in info.texi, which is required for
124 # the Texinfo distribution.
126 ../info/info: ${INFOSOURCES}
127 cd $(srcdir); $(MAKEINFO) --no-split info.texi -o $@
129 info.dvi: ${INFOSOURCES}
130 $(ENVADD) $(TEXI2DVI) ${srcdir}/info.texi
132 ../info/emacs: ${EMACSSOURCES}
133 cd $(srcdir); $(MAKEINFO) emacs.texi
135 emacs.dvi: ${EMACSSOURCES}
136 $(ENVADD) $(TEXI2DVI) ${srcdir}/emacs.texi
138 # This target is here so you could easily get the list of the *.texi
139 # files which belong to the Emacs manual (as opposed to the separate
140 # manuals for CL, CC Mode, Ebrowse, etc.). With this target, you can
141 # say things like "grep foo `make emacsman`".
142 emacsman:
143 @echo $(EMACSSOURCES)
145 ../info/ccmode: cc-mode.texi
146 cd $(srcdir); $(MAKEINFO) cc-mode.texi
147 cc-mode.dvi: cc-mode.texi
148 $(ENVADD) $(TEXI2DVI) ${srcdir}/cc-mode.texi
150 ../info/ada-mode: ada-mode.texi
151 cd $(srcdir); $(MAKEINFO) ada-mode.texi
152 ada-mode.dvi: ada-mode.texi
153 $(ENVADD) $(TEXI2DVI) ${srcdir}/ada-mode.texi
155 ../info/pcl-cvs: pcl-cvs.texi
156 cd $(srcdir); $(MAKEINFO) pcl-cvs.texi
157 pcl-cvs.dvi: pcl-cvs.texi
158 $(ENVADD) $(TEXI2DVI) ${srcdir}/pcl-cvs.texi
160 ../info/eshell: eshell.texi
161 cd $(srcdir); $(MAKEINFO) eshell.texi
162 eshell.dvi: eshell.texi
163 $(ENVADD) $(TEXI2DVI) ${srcdir}/eshell.texi
165 ../info/cl: cl.texi
166 cd $(srcdir); $(MAKEINFO) cl.texi
167 cl.dvi: cl.texi
168 $(ENVADD) $(TEXI2DVI) ${srcdir}/cl.texi
170 ../info/dired-x: dired-x.texi
171 cd $(srcdir); $(MAKEINFO) dired-x.texi
172 dired-x.dvi: dired-x.texi
173 $(ENVADD) $(TEXI2DVI) ${srcdir}/dired-x.texi
175 ../info/ediff: ediff.texi
176 cd $(srcdir); $(MAKEINFO) ediff.texi
177 ediff.dvi: ediff.texi
178 $(ENVADD) $(TEXI2DVI) ${srcdir}/ediff.texi
180 ../info/emacs-xtra: emacs-xtra.texi
181 cd $(srcdir); $(MAKEINFO) emacs-xtra.texi
182 emacs-xtra.dvi: emacs-xtra.texi
183 $(ENVADD) $(TEXI2DVI) ${srcdir}/emacs-xtra.texi
185 ../info/forms: forms.texi
186 cd $(srcdir); $(MAKEINFO) forms.texi
187 forms.dvi: forms.texi
188 $(ENVADD) $(TEXI2DVI) ${srcdir}/forms.texi
190 # gnus/message/emacs-mime/sieve/pgg are part of Gnus:
191 ../info/gnus: gnus.texi gnus-faq.texi
192 cd $(srcdir); $(MAKEINFO) gnus.texi
193 gnus.dvi: gnus.texi gnus-faq.texi
194 sed -e '/@iflatex/,/@end iflatex/d' ${srcdir}/gnus.texi > gnustmp.texi
195 $(ENVADD) $(TEXI2DVI) gnustmp.texi
196 cp gnustmp.dvi $*.dvi
197 rm gnustmp.*
199 ../info/message: message.texi
200 cd $(srcdir); $(MAKEINFO) message.texi
201 message.dvi: message.texi
202 $(ENVADD) $(TEXI2DVI) ${srcdir}/message.texi
204 ../info/sieve: sieve.texi
205 cd $(srcdir); $(MAKEINFO) sieve.texi
206 sieve.dvi: sieve.texi
207 $(ENVADD) $(TEXI2DVI) ${srcdir}/sieve.texi
209 ../info/emacs-mime: emacs-mime.texi
210 cd $(srcdir); $(MAKEINFO) emacs-mime.texi
211 emacs-mime.dvi: emacs-mime.texi
212 $(ENVADD) $(TEXI2DVI) ${srcdir}/emacs-mime.texi
214 ../info/pgg: pgg.texi
215 cd $(srcdir); $(MAKEINFO) pgg.texi
216 pgg.dvi: pgg.texi
217 $(ENVADD) $(TEXI2DVI) ${srcdir}/pgg.texi
219 ../info/mh-e: mh-e.texi
220 cd $(srcdir); $(MAKEINFO) mh-e.texi
221 mh-e.dvi: mh-e.texi
222 $(ENVADD) $(TEXI2DVI) ${srcdir}/mh-e.texi
224 ../info/reftex: reftex.texi
225 cd $(srcdir); $(MAKEINFO) reftex.texi
226 reftex.dvi: reftex.texi
227 $(ENVADD) $(TEXI2DVI) ${srcdir}/reftex.texi
229 ../info/sc: sc.texi
230 cd $(srcdir); $(MAKEINFO) sc.texi
231 sc.dvi: sc.texi
232 $(ENVADD) $(TEXI2DVI) ${srcdir}/sc.texi
234 ../info/vip: vip.texi
235 cd $(srcdir); $(MAKEINFO) vip.texi
236 vip.dvi: vip.texi
237 $(ENVADD) $(TEXI2DVI) ${srcdir}/vip.texi
239 ../info/viper: viper.texi
240 cd $(srcdir); $(MAKEINFO) viper.texi
241 viper.dvi: viper.texi
242 $(ENVADD) $(TEXI2DVI) ${srcdir}/viper.texi
244 ../info/widget: widget.texi
245 cd $(srcdir); $(MAKEINFO) widget.texi
246 widget.dvi: widget.texi
247 $(ENVADD) $(TEXI2DVI) ${srcdir}/widget.texi
249 ../info/efaq: faq.texi
250 cd $(srcdir); $(MAKEINFO) faq.texi
251 faq.dvi: faq.texi
252 $(ENVADD) $(TEXI2DVI) ${srcdir}/faq.texi
254 ../etc/GNU: gnu1.texi gnu.texi
255 cd $(srcdir) && makeinfo --no-headers -o ../etc/GNU gnu1.texi
257 ../info/autotype: autotype.texi
258 cd $(srcdir); $(MAKEINFO) autotype.texi
259 autotype.dvi: autotype.texi
260 $(ENVADD) $(TEXI2DVI) ${srcdir}/autotype.texi
262 ../info/calc: calc.texi
263 cd $(srcdir); $(MAKEINFO) calc.texi
265 calc.dvi: calc.texi
266 $(ENVADD) $(TEXI2DVI) ${srcdir}/calc.texi
268 # This is produced with --no-split to avoid making files whose
269 # names clash on DOS 8+3 filesystems
270 ../info/idlwave: idlwave.texi
271 cd $(srcdir); $(MAKEINFO) --no-split idlwave.texi
272 idlwave.dvi: idlwave.texi
273 $(ENVADD) $(TEXI2DVI) ${srcdir}/idlwave.texi
275 ../info/eudc: eudc.texi
276 cd $(srcdir); $(MAKEINFO) eudc.texi
277 eudc.dvi: eudc.texi
278 $(ENVADD) $(TEXI2DVI) ${srcdir}/eudc.texi
280 ../info/ebrowse: ebrowse.texi
281 cd $(srcdir); $(MAKEINFO) ebrowse.texi
282 ebrowse.dvi: ebrowse.texi
283 $(ENVADD) $(TEXI2DVI) ${srcdir}/ebrowse.texi
285 ../info/woman: woman.texi
286 cd $(srcdir); $(MAKEINFO) woman.texi
287 woman.dvi: woman.texi
288 $(ENVADD) $(TEXI2DVI) ${srcdir}/woman.texi
290 ../info/org: org.texi
291 cd $(srcdir); $(MAKEINFO) org.texi
292 org.dvi: org.texi
293 $(ENVADD) $(TEXI2DVI) ${srcdir}/org.texi
295 ../info/url: url.texi
296 cd $(srcdir); $(MAKEINFO) url.texi
297 url.dvi: url.texi
298 $(ENVADD) $(TEXI2DVI) ${srcdir}/url.texi
300 ../info/speedbar: speedbar.texi
301 cd $(srcdir); $(MAKEINFO) speedbar.texi
302 speedbar.dvi: speedbar.texi
303 $(ENVADD) $(TEXI2DVI) ${srcdir}/speedbar.texi
305 ../info/tramp: tramp.texi trampver.texi
306 cd $(srcdir); $(MAKEINFO) -D emacs tramp.texi
307 tramp.dvi: tramp.texi trampver.texi
308 $(ENVADD) $(TEXI2DVI) ${srcdir}/tramp.texi
310 ../info/ses: ses.texi
311 cd $(srcdir); $(MAKEINFO) ses.texi
312 ses.dvi: ses.texi
313 $(ENVADD) $(TEXI2DVI) ${srcdir}/ses.texi
315 ../info/smtpmail: smtpmail.texi
316 cd $(srcdir); $(MAKEINFO) smtpmail.texi
317 smtpmail.dvi: smtpmail.texi
318 $(ENVADD) $(TEXI2DVI) ${srcdir}/smtpmail.texi
320 ../info/flymake: flymake.texi
321 cd $(srcdir); $(MAKEINFO) flymake.texi
322 flymake.dvi: flymake.texi
323 $(ENVADD) $(TEXI2DVI) ${srcdir}/flymake.texi
325 mostlyclean:
326 rm -f *.log *.cp *.fn *.ky *.pg *.vr core *.tp *.core gnustmp.*
328 clean: mostlyclean
329 rm -f *.dvi
331 distclean: clean
333 maintainer-clean: distclean
334 rm -f *.aux *.cps *.fns *.kys *.pgs *.vrs *.toc
335 for file in $(INFO_TARGETS); do rm -f $${file}*; done
338 # Formerly this directory had texindex.c and getopt.c in it
339 # and this makefile built them to make texindex.
340 # That caused trouble because this is run entirely in the source directory.
341 # Since we expect to get texi2dvi from elsewhere,
342 # it is ok to expect texindex from elsewhere also.