1 #### Makefile for the Emacs Manual and other documentation.
3 # Where to find the source code. The source code for Emacs's C kernel is
4 # expected to be in ${srcdir}/src, and the source code for Emacs's
5 # utility programs is expected to be in ${srcdir}/lib-src. This is
6 # set by the configure script's `--srcdir' option.
9 # Tell make where to find source files; this is needed for the makefiles.
13 # The makeinfo program is part of the Texinfo distribution.
15 INFO_TARGETS
= ..
/info/emacs ..
/info/ccmode ..
/info/cl \
16 ..
/info/dired-x ..
/info/ediff ..
/info/forms ..
/info/gnus \
17 ..
/info/info ..
/info/message ..
/info/mh-e ..
/info/reftex \
18 ..
/info/sc ..
/info/vip ..
/info/viper ..
/info/widget \
19 ..
/info/efaq ..
/info/ada-mode ..
/info/autotype \
20 ..
/info/idlwave ..
/info/eudc ..
/info/ebrowse ..
/info/pcl-cvs \
21 ..
/info/woman ..
/info/emacs-mime ..
/info/eshell \
23 DVI_TARGETS
= emacs.
dvi cc-mode.
dvi cl.
dvi dired-x.
dvi \
24 ediff.
dvi forms.
dvi gnus.
dvi message.
dvi mh-e.
dvi \
25 reftex.
dvi sc.
dvi vip.
dvi viper.
dvi widget.
dvi faq.
dvi \
26 ada-mode.
dvi autotype.
dvi idlwave.
dvi eudc.
dvi ebrowse.
dvi \
27 pcl-cvs.
dvi woman.
dvi emacs-mime.
dvi eshell.
dvi \
29 INFOSOURCES
= info.texi
31 # The following rule does not work with all versions of `make'.
37 ENVADD
= TEXINPUTS
="$(srcdir):$(TEXINPUTS)" MAKEINFO
="$(MAKEINFO) -I$(srcdir)"
40 ${srcdir}/emacs.texi \
41 ${srcdir}/screen.texi \
42 ${srcdir}/commands.texi \
43 ${srcdir}/entering.texi \
44 ${srcdir}/basic.texi \
49 ${srcdir}/killing.texi \
51 ${srcdir}/display.texi \
52 ${srcdir}/search.texi \
53 ${srcdir}/fixit.texi \
54 ${srcdir}/files.texi \
55 ${srcdir}/buffers.texi \
56 ${srcdir}/windows.texi \
57 ${srcdir}/frames.texi \
59 ${srcdir}/major.texi \
60 ${srcdir}/indent.texi \
62 ${srcdir}/programs.texi \
63 ${srcdir}/building.texi \
64 ${srcdir}/abbrevs.texi \
65 ${srcdir}/picture.texi \
66 ${srcdir}/sending.texi \
67 ${srcdir}/rmail.texi \
68 ${srcdir}/dired.texi \
69 ${srcdir}/calendar.texi \
71 ${srcdir}/custom.texi \
72 ${srcdir}/trouble.texi \
73 ${srcdir}/cmdargs.texi \
75 ${srcdir}/msdog.texi \
77 ${srcdir}/glossary.texi \
84 # Note that all the Info targets build the Info files
85 # in srcdir. There is no provision for Info files
86 # to exist in the build directory.
87 # In a distribution of Emacs, the Info files should be up to date.
89 ..
/info/info: ${INFOSOURCES}
90 cd
$(srcdir); $(MAKEINFO
) --no-split
info.texi
92 info.
dvi: ${INFOSOURCES}
93 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/info.texi
95 ..
/info/emacs
: ${EMACSSOURCES}
96 cd
$(srcdir); $(MAKEINFO
) emacs.texi
98 emacs.
dvi: ${EMACSSOURCES}
99 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/emacs.texi
101 ..
/info/ccmode
: cc-mode.texi
102 cd
$(srcdir); $(MAKEINFO
) cc-mode.texi
103 cc-mode.
dvi: cc-mode.texi
104 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/cc-mode.texi
106 ..
/info/ada-mode
: ada-mode.texi
107 cd
$(srcdir); $(MAKEINFO
) ada-mode.texi
108 ada-mode.
dvi: ada-mode.texi
109 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ada-mode.texi
111 ..
/info/pcl-cvs
: pcl-cvs.texi
112 cd
$(srcdir); $(MAKEINFO
) pcl-cvs.texi
113 pcl-cvs.
dvi: pcl-cvs.texi
114 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/pcl-cvs.texi
116 ..
/info/eshell
: eshell.texi
117 cd
$(srcdir); $(MAKEINFO
) eshell.texi
118 eshell.
dvi: eshell.texi
119 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/eshell.texi
122 cd
$(srcdir); $(MAKEINFO
) cl.texi
124 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/cl.texi
126 ..
/info/dired-x
: dired-x.texi
127 cd
$(srcdir); $(MAKEINFO
) dired-x.texi
128 dired-x.
dvi: dired-x.texi
129 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/dired-x.texi
131 ..
/info/ediff
: ediff.texi
132 cd
$(srcdir); $(MAKEINFO
) ediff.texi
133 ediff.
dvi: ediff.texi
134 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ediff.texi
136 ..
/info/forms
: forms.texi
137 cd
$(srcdir); $(MAKEINFO
) forms.texi
138 forms.
dvi: forms.texi
139 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/forms.texi
141 ..
/info/gnus
: gnus.texi
142 cd
$(srcdir); $(MAKEINFO
) gnus.texi
144 sed
-e
'/@iflatex/,/@end iflatex/d' ${srcdir}/gnus.texi
> gnustmp.texi
145 $(ENVADD
) $(TEXI2DVI
) gnustmp.texi
146 cp gnustmp.
dvi $*.
dvi
149 ..
/info/message
: message.texi
150 cd
$(srcdir); $(MAKEINFO
) message.texi
151 message.
dvi: message.texi
152 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/message.texi
154 ..
/info/mh-e
: mh-e.texi
155 cd
$(srcdir); $(MAKEINFO
) mh-e.texi
157 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/mh-e.texi
159 ..
/info/reftex
: reftex.texi
160 cd
$(srcdir); $(MAKEINFO
) reftex.texi
161 reftex.
dvi: reftex.texi
162 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/reftex.texi
165 cd
$(srcdir); $(MAKEINFO
) sc.texi
167 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/sc.texi
169 ..
/info/vip
: vip.texi
170 cd
$(srcdir); $(MAKEINFO
) vip.texi
172 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/vip.texi
174 ..
/info/viper
: viper.texi
175 cd
$(srcdir); $(MAKEINFO
) viper.texi
176 viper.
dvi: viper.texi
177 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/viper.texi
179 ..
/info/widget
: widget.texi
180 cd
$(srcdir); $(MAKEINFO
) widget.texi
181 widget.
dvi: widget.texi
182 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/widget.texi
184 ..
/info/efaq
: faq.texi
185 cd
$(srcdir); $(MAKEINFO
) faq.texi
187 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/faq.texi
189 ..
/etc
/GNU
: gnu1.texi gnu.texi
190 cd
$(srcdir) && makeinfo --no-headers
-o ..
/etc
/GNU gnu1.texi
192 ..
/info/autotype
: autotype.texi
193 cd
$(srcdir); $(MAKEINFO
) autotype.texi
194 autotype.
dvi: autotype.texi
195 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/autotype.texi
197 # This is produced with --no-split to avoid making files whose
198 # names clash on DOS 8+3 filesystems
199 ..
/info/idlwave
: idlwave.texi
200 cd
$(srcdir); $(MAKEINFO
) --no-split idlwave.texi
201 idlwave.
dvi: idlwave.texi
202 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/idlwave.texi
204 ..
/info/eudc
: eudc.texi
205 cd
$(srcdir); $(MAKEINFO
) eudc.texi
207 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/eudc.texi
209 ..
/info/ebrowse
: ebrowse.texi
210 cd
$(srcdir); $(MAKEINFO
) ebrowse.texi
211 ebrowse.
dvi: ebrowse.texi
212 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ebrowse.texi
214 ..
/info/woman
: woman.texi
215 cd
$(srcdir); $(MAKEINFO
) woman.texi
216 woman.
dvi: woman.texi
217 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/woman.texi
219 ..
/info/speedbar
: speedbar.texi
220 cd
$(srcdir); $(MAKEINFO
) speedbar.texi
221 speedbar.
dvi: speedbar.texi
222 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/speedbar.texi
224 ..
/info/emacs-mime
: emacs-mime.texi
225 cd
$(srcdir); $(MAKEINFO
) emacs-mime.texi
226 emacs-mime.
dvi: emacs-mime.texi
227 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/emacs-mime.texi
230 rm -f
*.log
*.cp
*.fn
*.ky
*.pg
*.vr core gnustmp.
*
237 maintainer-clean
: distclean
238 rm -f
*.aux
*.cps
*.fns
*.kys
*.pgs
*.vrs
239 # Don't delete these, because they are outside the current directory.
240 # for file in $(INFO_TARGETS); do rm -f $${file}*; done
243 # Formerly this directory had texindex.c and getopt.c in it
244 # and this makefile built them to make texindex.
245 # That caused trouble because this is run entirely in the source directory.
246 # Since we expect to get texi2dvi from elsewhere,
247 # it is ok to expect texindex from elsewhere also.