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
22 DVI_TARGETS
= emacs.
dvi cc-mode.
dvi cl.
dvi dired-x.
dvi \
23 ediff.
dvi forms.
dvi gnus.
dvi message.
dvi mh-e.
dvi \
24 reftex.
dvi sc.
dvi vip.
dvi viper.
dvi widget.
dvi faq.
dvi \
25 ada-mode.
dvi autotype.
dvi idlwave.
dvi eudc.
dvi ebrowse.
dvi \
26 pcl-cvs.
dvi woman.
dvi emacs-mime.
dvi
27 INFOSOURCES
= info.texi info-stnd.texi
29 # The following rule does not work with all versions of `make'.
35 ENVADD
= TEXINPUTS
="$(srcdir):$(TEXINPUTS)" MAKEINFO
="$(MAKEINFO) -I$(srcdir)"
38 ${srcdir}/emacs.texi \
39 ${srcdir}/screen.texi \
40 ${srcdir}/commands.texi \
41 ${srcdir}/entering.texi \
42 ${srcdir}/basic.texi \
47 ${srcdir}/killing.texi \
49 ${srcdir}/display.texi \
50 ${srcdir}/search.texi \
51 ${srcdir}/fixit.texi \
52 ${srcdir}/files.texi \
53 ${srcdir}/buffers.texi \
54 ${srcdir}/windows.texi \
55 ${srcdir}/frames.texi \
57 ${srcdir}/major.texi \
58 ${srcdir}/indent.texi \
60 ${srcdir}/programs.texi \
61 ${srcdir}/building.texi \
62 ${srcdir}/abbrevs.texi \
63 ${srcdir}/picture.texi \
64 ${srcdir}/sending.texi \
65 ${srcdir}/rmail.texi \
66 ${srcdir}/dired.texi \
67 ${srcdir}/calendar.texi \
69 ${srcdir}/custom.texi \
70 ${srcdir}/trouble.texi \
71 ${srcdir}/cmdargs.texi \
73 ${srcdir}/msdog.texi \
75 ${srcdir}/glossary.texi \
82 # Note that all the Info targets build the Info files
83 # in srcdir. There is no provision for Info files
84 # to exist in the build directory.
85 # In a distribution of Emacs, the Info files should be up to date.
87 ..
/info/info: ${INFOSOURCES}
88 cd
$(srcdir); $(MAKEINFO
) --no-split
info.texi
90 info.
dvi: ${INFOSOURCES}
91 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/info.texi
93 ..
/info/emacs
: ${EMACSSOURCES}
94 cd
$(srcdir); $(MAKEINFO
) emacs.texi
96 emacs.
dvi: ${EMACSSOURCES}
97 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/emacs.texi
99 ..
/info/ccmode
: cc-mode.texi
100 cd
$(srcdir); $(MAKEINFO
) cc-mode.texi
101 cc-mode.
dvi: cc-mode.texi
102 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/cc-mode.texi
104 ..
/info/ada-mode
: ada-mode.texi
105 cd
$(srcdir); $(MAKEINFO
) ada-mode.texi
106 ada-mode.
dvi: ada-mode.texi
107 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ada-mode.texi
109 ..
/info/pcl-cvs
: pcl-cvs.texi
110 cd
$(srcdir); $(MAKEINFO
) pcl-cvs.texi
111 pcl-cvs.
dvi: pcl-cvs.texi
112 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/pcl-cvs.texi
115 cd
$(srcdir); $(MAKEINFO
) cl.texi
117 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/cl.texi
119 ..
/info/dired-x
: dired-x.texi
120 cd
$(srcdir); $(MAKEINFO
) dired-x.texi
121 dired-x.
dvi: dired-x.texi
122 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/dired-x.texi
124 ..
/info/ediff
: ediff.texi
125 cd
$(srcdir); $(MAKEINFO
) ediff.texi
126 ediff.
dvi: ediff.texi
127 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ediff.texi
129 ..
/info/forms
: forms.texi
130 cd
$(srcdir); $(MAKEINFO
) forms.texi
131 forms.
dvi: forms.texi
132 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/forms.texi
134 ..
/info/gnus
: gnus.texi
135 cd
$(srcdir); $(MAKEINFO
) gnus.texi
137 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/gnus.texi
139 ..
/info/message
: message.texi
140 cd
$(srcdir); $(MAKEINFO
) message.texi
141 message.
dvi: message.texi
142 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/message.texi
144 ..
/info/mh-e
: mh-e.texi
145 cd
$(srcdir); $(MAKEINFO
) mh-e.texi
147 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/mh-e.texi
149 ..
/info/reftex
: reftex.texi
150 cd
$(srcdir); $(MAKEINFO
) reftex.texi
151 reftex.
dvi: reftex.texi
152 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/reftex.texi
155 cd
$(srcdir); $(MAKEINFO
) sc.texi
157 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/sc.texi
159 ..
/info/vip
: vip.texi
160 cd
$(srcdir); $(MAKEINFO
) vip.texi
162 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/vip.texi
164 ..
/info/viper
: viper.texi
165 cd
$(srcdir); $(MAKEINFO
) viper.texi
166 viper.
dvi: viper.texi
167 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/viper.texi
169 ..
/info/widget
: widget.texi
170 cd
$(srcdir); $(MAKEINFO
) widget.texi
171 widget.
dvi: widget.texi
172 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/widget.texi
174 ..
/info/efaq
: faq.texi
175 cd
$(srcdir); $(MAKEINFO
) faq.texi
177 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/faq.texi
179 ..
/etc
/GNU
: gnu1.texi gnu.texi
180 cd
$(srcdir) && makeinfo --no-headers
-o ..
/etc
/GNU gnu1.texi
182 ..
/info/autotype
: autotype.texi
183 cd
$(srcdir); $(MAKEINFO
) autotype.texi
184 autotype.
dvi: autotype.texi
185 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/autotype.texi
187 ..
/info/idlwave
: idlwave.texi
188 cd
$(srcdir); $(MAKEINFO
) idlwave.texi
189 idlwave.
dvi: idlwave.texi
190 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/idlwave.texi
192 ..
/info/eudc
: eudc.texi
193 cd
$(srcdir); $(MAKEINFO
) eudc.texi
195 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/eudc.texi
197 ..
/info/ebrowse
: ebrowse.texi
198 cd
$(srcdir); $(MAKEINFO
) ebrowse.texi
199 ebrowse.
dvi: ebrowse.texi
200 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ebrowse.texi
202 ..
/info/woman
: woman.texi
203 cd
$(srcdir); $(MAKEINFO
) woman.texi
204 woman.
dvi: woman.texi
205 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/woman.texi
207 # ../info/speedbar: speedbar.texi
208 # cd $(srcdir); $(MAKEINFO) speedbar.texi
209 # speedbar.dvi: speedbar.texi
210 # $(ENVADD) $(TEXI2DVI) ${srcdir}/speedbar.texi
212 ..
/info/emacs-mime
: emacs-mime.texi
213 cd
$(srcdir); $(MAKEINFO
) emacs-mime.texi
214 emacs-mime.
dvi: emacs-mime.texi
215 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/emacs-mime.texi
218 rm -f
*.log
*.cp
*.fn
*.ky
*.pg
*.vr core
225 maintainer-clean
: distclean
226 rm -f
*.aux
*.cps
*.fns
*.kys
*.pgs
*.vrs
227 # Don't delete these, because they are outside the current directory.
228 # for file in $(INFO_TARGETS); do rm -f $${file}*; done
231 # Formerly this directory had texindex.c and getopt.c in it
232 # and this makefile built them to make texindex.
233 # That caused trouble because this is run entirely in the source directory.
234 # Since we expect to get texi2dvi from elsewhere,
235 # it is ok to expect texindex from elsewhere also.