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
21 DVI_TARGETS
= emacs.
dvi cc-mode.
dvi cl.
dvi dired-x.
dvi \
22 ediff.
dvi forms.
dvi gnus.
dvi message.
dvi mh-e.
dvi \
23 reftex.
dvi sc.
dvi vip.
dvi viper.
dvi widget.
dvi faq.
dvi \
24 ada-mode.
dvi autotype.
dvi idlwave.
dvi eudc.
dvi
25 INFOSOURCES
= info.texi info-stnd.texi
27 # The following rule does not work with all versions of `make'.
33 ENVADD
= TEXINPUTS
="$(srcdir):$(TEXINPUTS)" MAKEINFO
="$(MAKEINFO) -I$(srcdir)"
36 ${srcdir}/emacs.texi \
37 ${srcdir}/screen.texi \
38 ${srcdir}/commands.texi \
39 ${srcdir}/entering.texi \
40 ${srcdir}/basic.texi \
45 ${srcdir}/killing.texi \
47 ${srcdir}/display.texi \
48 ${srcdir}/search.texi \
49 ${srcdir}/fixit.texi \
50 ${srcdir}/files.texi \
51 ${srcdir}/buffers.texi \
52 ${srcdir}/windows.texi \
53 ${srcdir}/frames.texi \
55 ${srcdir}/major.texi \
56 ${srcdir}/indent.texi \
58 ${srcdir}/programs.texi \
59 ${srcdir}/building.texi \
60 ${srcdir}/abbrevs.texi \
61 ${srcdir}/picture.texi \
62 ${srcdir}/sending.texi \
63 ${srcdir}/rmail.texi \
64 ${srcdir}/dired.texi \
65 ${srcdir}/calendar.texi \
67 ${srcdir}/custom.texi \
68 ${srcdir}/trouble.texi \
69 ${srcdir}/cmdargs.texi \
71 ${srcdir}/msdog.texi \
73 ${srcdir}/glossary.texi \
80 # Note that all the Info targets build the Info files
81 # in srcdir. There is no provision for Info files
82 # to exist in the build directory.
83 # In a distribution of Emacs, the Info files should be up to date.
85 ..
/info/info: ${INFOSOURCES}
86 cd
$(srcdir); $(MAKEINFO
) --no-split
info.texi
88 info.
dvi: ${INFOSOURCES}
89 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/info.texi
91 ..
/info/emacs
: ${EMACSSOURCES}
92 cd
$(srcdir); $(MAKEINFO
) emacs.texi
94 emacs.
dvi: ${EMACSSOURCES}
95 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/emacs.texi
97 ..
/info/ccmode
: cc-mode.texi
98 cd
$(srcdir); $(MAKEINFO
) cc-mode.texi
99 cc-mode.
dvi: cc-mode.texi
100 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/cc-mode.texi
102 ..
/info/ada-mode
: ada-mode.texi
103 cd
$(srcdir); $(MAKEINFO
) ada-mode.texi
104 ada-mode.
dvi: ada-mode.texi
105 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ada-mode.texi
108 cd
$(srcdir); $(MAKEINFO
) cl.texi
110 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/cl.texi
112 ..
/info/dired-x
: dired-x.texi
113 cd
$(srcdir); $(MAKEINFO
) dired-x.texi
114 dired-x.
dvi: dired-x.texi
115 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/dired-x.texi
117 ..
/info/ediff
: ediff.texi
118 cd
$(srcdir); $(MAKEINFO
) ediff.texi
119 ediff.
dvi: ediff.texi
120 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ediff.texi
122 ..
/info/forms
: forms.texi
123 cd
$(srcdir); $(MAKEINFO
) forms.texi
124 forms.
dvi: forms.texi
125 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/forms.texi
127 ..
/info/gnus
: gnus.texi
128 cd
$(srcdir); $(MAKEINFO
) gnus.texi
130 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/gnus.texi
132 ..
/info/message
: message.texi
133 cd
$(srcdir); $(MAKEINFO
) message.texi
134 message.
dvi: message.texi
135 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/message.texi
137 ..
/info/mh-e
: mh-e.texi
138 cd
$(srcdir); $(MAKEINFO
) mh-e.texi
140 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/mh-e.texi
142 ..
/info/reftex
: reftex.texi
143 cd
$(srcdir); $(MAKEINFO
) reftex.texi
144 reftex.
dvi: reftex.texi
145 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/reftex.texi
148 cd
$(srcdir); $(MAKEINFO
) sc.texi
150 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/sc.texi
152 ..
/info/vip
: vip.texi
153 cd
$(srcdir); $(MAKEINFO
) vip.texi
155 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/vip.texi
157 ..
/info/viper
: viper.texi
158 cd
$(srcdir); $(MAKEINFO
) viper.texi
159 viper.
dvi: viper.texi
160 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/viper.texi
162 ..
/info/widget
: widget.texi
163 cd
$(srcdir); $(MAKEINFO
) widget.texi
164 widget.
dvi: widget.texi
165 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/widget.texi
167 ..
/info/efaq
: faq.texi
168 cd
$(srcdir); $(MAKEINFO
) faq.texi
170 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/faq.texi
172 ..
/etc
/GNU
: gnu1.texi gnu.texi
173 cd
$(srcdir) && makeinfo --no-headers
-o ..
/etc
/GNU gnu1.texi
175 ..
/info/autotype
: autotype.texi
176 cd
$(srcdir); $(MAKEINFO
) autotype.texi
177 autotype.
dvi: autotype.texi
178 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/autotype.texi
180 ..
/info/idlwave
: idlwave.texi
181 cd
$(srcdir); $(MAKEINFO
) idlwave.texi
182 idlwave.
dvi: idlwave.texi
183 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/idlwave.texi
185 ..
/info/eudc
: eudc.texi
186 cd
$(srcdir); $(MAKEINFO
) eudc.texi
188 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/eudc.texi
191 rm -f
*.log
*.cp
*.fn
*.ky
*.pg
*.vr core
198 maintainer-clean
: distclean
199 rm -f
*.aux
*.cps
*.fns
*.kys
*.pgs
*.vrs
200 # Don't delete these, because they are outside the current directory.
201 # for file in $(INFO_TARGETS); do rm -f $${file}*; done
204 # Formerly this directory had texindex.c and getopt.c in it
205 # and this makefile built them to make texindex.
206 # That caused trouble because this is run entirely in the source directory.
207 # Since we expect to get texi2dvi from elsewhere,
208 # it is ok to expect texindex from elsewhere also.