(2C-two-columns, 2C-merge): Use window-full-width-p instead of comparing
[emacs.git] / man / Makefile.in
blob00088b74b5140a8f5b3c0e708d5684436a4d1e44
1 #### Makefile for the Emacs Manual and other documentation.
3 # Copyright (C) 1994, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
4 # 2004, 2005, 2006, 2007 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 3, 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., 51 Franklin Street, Fifth Floor,
21 # Boston, MA 02110-1301, 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/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 ../info/newsticker ../info/rcirc ../info/erc
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 newsticker.dvi emacs-xtra.dvi rcirc.dvi erc.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 EMACS_XTRA=\
65 $(srcdir)/arevert-xtra.texi \
66 $(srcdir)/cal-xtra.texi \
67 $(srcdir)/dired-xtra.texi \
68 $(srcdir)/picture-xtra.texi \
69 $(srcdir)/emerge-xtra.texi \
70 $(srcdir)/vc-xtra.texi \
71 $(srcdir)/vc1-xtra.texi \
72 $(srcdir)/vc2-xtra.texi \
73 $(srcdir)/fortran-xtra.texi \
74 $(srcdir)/msdog-xtra.texi
76 EMACSSOURCES= \
77 ${srcdir}/emacs.texi \
78 ${srcdir}/doclicense.texi \
79 ${srcdir}/gpl.texi \
80 ${srcdir}/screen.texi \
81 ${srcdir}/commands.texi \
82 ${srcdir}/entering.texi \
83 ${srcdir}/basic.texi \
84 ${srcdir}/mini.texi \
85 ${srcdir}/m-x.texi \
86 ${srcdir}/help.texi \
87 ${srcdir}/mark.texi \
88 ${srcdir}/killing.texi \
89 ${srcdir}/regs.texi \
90 ${srcdir}/display.texi \
91 ${srcdir}/search.texi \
92 ${srcdir}/fixit.texi \
93 ${srcdir}/files.texi \
94 ${srcdir}/buffers.texi \
95 ${srcdir}/windows.texi \
96 ${srcdir}/frames.texi \
97 ${srcdir}/mule.texi \
98 ${srcdir}/major.texi \
99 ${srcdir}/indent.texi \
100 ${srcdir}/text.texi \
101 ${srcdir}/programs.texi \
102 ${srcdir}/building.texi \
103 ${srcdir}/maintaining.texi \
104 ${srcdir}/abbrevs.texi \
105 ${srcdir}/sending.texi \
106 ${srcdir}/rmail.texi \
107 ${srcdir}/dired.texi \
108 ${srcdir}/calendar.texi \
109 ${srcdir}/misc.texi \
110 ${srcdir}/custom.texi \
111 ${srcdir}/trouble.texi \
112 ${srcdir}/cmdargs.texi \
113 ${srcdir}/xresources.texi \
114 ${srcdir}/anti.texi \
115 ${srcdir}/macos.texi \
116 ${srcdir}/msdog.texi \
117 ${srcdir}/gnu.texi \
118 ${srcdir}/glossary.texi \
119 ${srcdir}/ack.texi \
120 ${srcdir}/kmacro.texi \
121 $(EMACS_XTRA)
123 info: $(top_srcdir)/info $(INFO_TARGETS)
125 $(top_srcdir)/info:
126 mkdir $@
128 dvi: $(DVI_TARGETS)
130 # Note that all the Info targets build the Info files
131 # in srcdir. There is no provision for Info files
132 # to exist in the build directory.
133 # In a distribution of Emacs, the Info files should be up to date.
135 # The following target uses an explicit -o switch to work around
136 # the @setfilename directive in info.texi, which is required for
137 # the Texinfo distribution.
139 ../info/info: ${INFOSOURCES}
140 cd $(srcdir); $(MAKEINFO) --no-split info.texi -o $@
142 info.dvi: ${INFOSOURCES}
143 $(ENVADD) $(TEXI2DVI) ${srcdir}/info.texi
145 ../info/emacs: ${EMACSSOURCES}
146 cd $(srcdir); $(MAKEINFO) emacs.texi
148 emacs.dvi: ${EMACSSOURCES}
149 $(ENVADD) $(TEXI2DVI) ${srcdir}/emacs.texi
151 # This target is here so you could easily get the list of the *.texi
152 # files which belong to the Emacs manual (as opposed to the separate
153 # manuals for CL, CC Mode, Ebrowse, etc.). With this target, you can
154 # say things like "grep foo `make emacsman`".
155 emacsman:
156 @echo $(EMACSSOURCES)
158 ../info/ccmode: cc-mode.texi
159 cd $(srcdir); $(MAKEINFO) cc-mode.texi
160 cc-mode.dvi: cc-mode.texi
161 $(ENVADD) $(TEXI2DVI) ${srcdir}/cc-mode.texi
163 ../info/ada-mode: ada-mode.texi
164 cd $(srcdir); $(MAKEINFO) ada-mode.texi
165 ada-mode.dvi: ada-mode.texi
166 $(ENVADD) $(TEXI2DVI) ${srcdir}/ada-mode.texi
168 ../info/pcl-cvs: pcl-cvs.texi
169 cd $(srcdir); $(MAKEINFO) pcl-cvs.texi
170 pcl-cvs.dvi: pcl-cvs.texi
171 $(ENVADD) $(TEXI2DVI) ${srcdir}/pcl-cvs.texi
173 ../info/eshell: eshell.texi
174 cd $(srcdir); $(MAKEINFO) eshell.texi
175 eshell.dvi: eshell.texi
176 $(ENVADD) $(TEXI2DVI) ${srcdir}/eshell.texi
178 ../info/cl: cl.texi
179 cd $(srcdir); $(MAKEINFO) cl.texi
180 cl.dvi: cl.texi
181 $(ENVADD) $(TEXI2DVI) ${srcdir}/cl.texi
183 ../info/dired-x: dired-x.texi
184 cd $(srcdir); $(MAKEINFO) dired-x.texi
185 dired-x.dvi: dired-x.texi
186 $(ENVADD) $(TEXI2DVI) ${srcdir}/dired-x.texi
188 ../info/ediff: ediff.texi
189 cd $(srcdir); $(MAKEINFO) ediff.texi
190 ediff.dvi: ediff.texi
191 $(ENVADD) $(TEXI2DVI) ${srcdir}/ediff.texi
193 emacs-xtra.dvi: emacs-xtra.texi $(EMACS_XTRA)
194 $(ENVADD) $(TEXI2DVI) ${srcdir}/emacs-xtra.texi
196 ../info/forms: forms.texi
197 cd $(srcdir); $(MAKEINFO) forms.texi
198 forms.dvi: forms.texi
199 $(ENVADD) $(TEXI2DVI) ${srcdir}/forms.texi
201 # gnus/message/emacs-mime/sieve/pgg are part of Gnus:
202 ../info/gnus: gnus.texi gnus-faq.texi
203 cd $(srcdir); $(MAKEINFO) gnus.texi
204 gnus.dvi: gnus.texi gnus-faq.texi
205 sed -e '/@iflatex/,/@end iflatex/d' ${srcdir}/gnus.texi > gnustmp.texi
206 $(ENVADD) $(TEXI2DVI) gnustmp.texi
207 cp gnustmp.dvi $*.dvi
208 rm gnustmp.*
210 ../info/message: message.texi
211 cd $(srcdir); $(MAKEINFO) message.texi
212 message.dvi: message.texi
213 $(ENVADD) $(TEXI2DVI) ${srcdir}/message.texi
215 ../info/sieve: sieve.texi
216 cd $(srcdir); $(MAKEINFO) sieve.texi
217 sieve.dvi: sieve.texi
218 $(ENVADD) $(TEXI2DVI) ${srcdir}/sieve.texi
220 ../info/emacs-mime: emacs-mime.texi
221 cd $(srcdir); $(MAKEINFO) --enable-encoding emacs-mime.texi
222 emacs-mime.dvi: emacs-mime.texi
223 $(ENVADD) $(TEXI2DVI) ${srcdir}/emacs-mime.texi
225 ../info/pgg: pgg.texi
226 cd $(srcdir); $(MAKEINFO) pgg.texi
227 pgg.dvi: pgg.texi
228 $(ENVADD) $(TEXI2DVI) ${srcdir}/pgg.texi
230 ../info/mh-e: mh-e.texi
231 cd $(srcdir); $(MAKEINFO) mh-e.texi
232 mh-e.dvi: mh-e.texi
233 $(ENVADD) $(TEXI2DVI) ${srcdir}/mh-e.texi
235 ../info/reftex: reftex.texi
236 cd $(srcdir); $(MAKEINFO) reftex.texi
237 reftex.dvi: reftex.texi
238 $(ENVADD) $(TEXI2DVI) ${srcdir}/reftex.texi
240 ../info/sc: sc.texi
241 cd $(srcdir); $(MAKEINFO) sc.texi
242 sc.dvi: sc.texi
243 $(ENVADD) $(TEXI2DVI) ${srcdir}/sc.texi
245 ../info/vip: vip.texi
246 cd $(srcdir); $(MAKEINFO) vip.texi
247 vip.dvi: vip.texi
248 $(ENVADD) $(TEXI2DVI) ${srcdir}/vip.texi
250 ../info/viper: viper.texi
251 cd $(srcdir); $(MAKEINFO) viper.texi
252 viper.dvi: viper.texi
253 $(ENVADD) $(TEXI2DVI) ${srcdir}/viper.texi
255 ../info/widget: widget.texi
256 cd $(srcdir); $(MAKEINFO) widget.texi
257 widget.dvi: widget.texi
258 $(ENVADD) $(TEXI2DVI) ${srcdir}/widget.texi
260 ../info/efaq: faq.texi
261 cd $(srcdir); $(MAKEINFO) faq.texi
262 faq.dvi: faq.texi
263 $(ENVADD) $(TEXI2DVI) ${srcdir}/faq.texi
265 ../etc/GNU: gnu1.texi gnu.texi
266 cd $(srcdir) && makeinfo --no-headers -o ../etc/GNU gnu1.texi
268 ../info/autotype: autotype.texi
269 cd $(srcdir); $(MAKEINFO) autotype.texi
270 autotype.dvi: autotype.texi
271 $(ENVADD) $(TEXI2DVI) ${srcdir}/autotype.texi
273 ../info/calc: calc.texi
274 cd $(srcdir); $(MAKEINFO) calc.texi
276 calc.dvi: calc.texi
277 $(ENVADD) $(TEXI2DVI) ${srcdir}/calc.texi
279 # This is produced with --no-split to avoid making files whose
280 # names clash on DOS 8+3 filesystems
281 ../info/idlwave: idlwave.texi
282 cd $(srcdir); $(MAKEINFO) --no-split idlwave.texi
283 idlwave.dvi: idlwave.texi
284 $(ENVADD) $(TEXI2DVI) ${srcdir}/idlwave.texi
286 ../info/eudc: eudc.texi
287 cd $(srcdir); $(MAKEINFO) eudc.texi
288 eudc.dvi: eudc.texi
289 $(ENVADD) $(TEXI2DVI) ${srcdir}/eudc.texi
291 ../info/ebrowse: ebrowse.texi
292 cd $(srcdir); $(MAKEINFO) ebrowse.texi
293 ebrowse.dvi: ebrowse.texi
294 $(ENVADD) $(TEXI2DVI) ${srcdir}/ebrowse.texi
296 ../info/woman: woman.texi
297 cd $(srcdir); $(MAKEINFO) woman.texi
298 woman.dvi: woman.texi
299 $(ENVADD) $(TEXI2DVI) ${srcdir}/woman.texi
301 ../info/org: org.texi
302 cd $(srcdir); $(MAKEINFO) org.texi
303 org.dvi: org.texi
304 $(ENVADD) $(TEXI2DVI) ${srcdir}/org.texi
306 ../info/url: url.texi
307 cd $(srcdir); $(MAKEINFO) url.texi
308 url.dvi: url.texi
309 $(ENVADD) $(TEXI2DVI) ${srcdir}/url.texi
311 ../info/speedbar: speedbar.texi
312 cd $(srcdir); $(MAKEINFO) speedbar.texi
313 speedbar.dvi: speedbar.texi
314 $(ENVADD) $(TEXI2DVI) ${srcdir}/speedbar.texi
316 ../info/tramp: tramp.texi trampver.texi
317 cd $(srcdir); $(MAKEINFO) -D emacs tramp.texi
318 tramp.dvi: tramp.texi trampver.texi
319 $(ENVADD) $(TEXI2DVI) ${srcdir}/tramp.texi
321 ../info/ses: ses.texi
322 cd $(srcdir); $(MAKEINFO) ses.texi
323 ses.dvi: ses.texi
324 $(ENVADD) $(TEXI2DVI) ${srcdir}/ses.texi
326 ../info/smtpmail: smtpmail.texi
327 cd $(srcdir); $(MAKEINFO) smtpmail.texi
328 smtpmail.dvi: smtpmail.texi
329 $(ENVADD) $(TEXI2DVI) ${srcdir}/smtpmail.texi
331 ../info/flymake: flymake.texi
332 cd $(srcdir); $(MAKEINFO) flymake.texi
333 flymake.dvi: flymake.texi
334 $(ENVADD) $(TEXI2DVI) ${srcdir}/flymake.texi
336 ../info/newsticker: newsticker.texi
337 cd $(srcdir); $(MAKEINFO) newsticker.texi
338 newsticker.dvi: newsticker.texi
339 $(ENVADD) $(TEXI2DVI) ${srcdir}/newsticker.texi
341 ../info/rcirc: rcirc.texi
342 cd $(srcdir); $(MAKEINFO) rcirc.texi
343 rcirc.dvi: rcirc.texi
344 $(ENVADD) $(TEXI2DVI) ${srcdir}/rcirc.texi
346 ../info/erc: erc.texi
347 cd $(srcdir); $(MAKEINFO) erc.texi
348 erc.dvi: erc.texi
349 $(ENVADD) $(TEXI2DVI) ${srcdir}/erc.texi
351 mostlyclean:
352 rm -f *.log *.cp *.fn *.ky *.pg *.vr core *.tp *.core gnustmp.*
354 clean: mostlyclean
355 rm -f *.dvi
357 distclean: clean
359 maintainer-clean: distclean
360 rm -f *.aux *.cps *.fns *.kys *.pgs *.vrs *.toc
361 for file in $(INFO_TARGETS); do rm -f $${file}*; done
364 # Formerly this directory had texindex.c and getopt.c in it
365 # and this makefile built them to make texindex.
366 # That caused trouble because this is run entirely in the source directory.
367 # Since we expect to get texi2dvi from elsewhere,
368 # it is ok to expect texindex from elsewhere also.