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/emacs-faq.
info ..
/info/ada-mode
20 DVI_TARGETS
= emacs.
dvi cc-mode.
dvi cl.
dvi dired-x.
dvi \
21 ediff.
dvi forms.
dvi gnus.
dvi message.
dvi mh-e.
dvi \
22 reftex.
dvi sc.
dvi vip.
dvi viper.
dvi widget.
dvi faq.
dvi \
24 INFOSOURCES
= info.texi info-stnd.texi
26 # The following rule does not work with all versions of `make'.
32 ENVADD
= TEXINPUTS
="$(srcdir):$(TEXINPUTS)" MAKEINFO
="$(MAKEINFO) -I$(srcdir)"
35 ${srcdir}/emacs.texi \
36 ${srcdir}/screen.texi \
37 ${srcdir}/commands.texi \
38 ${srcdir}/entering.texi \
39 ${srcdir}/basic.texi \
44 ${srcdir}/killing.texi \
46 ${srcdir}/display.texi \
47 ${srcdir}/search.texi \
48 ${srcdir}/fixit.texi \
49 ${srcdir}/files.texi \
50 ${srcdir}/buffers.texi \
51 ${srcdir}/windows.texi \
52 ${srcdir}/frames.texi \
54 ${srcdir}/major.texi \
55 ${srcdir}/indent.texi \
57 ${srcdir}/programs.texi \
58 ${srcdir}/building.texi \
59 ${srcdir}/abbrevs.texi \
60 ${srcdir}/picture.texi \
61 ${srcdir}/sending.texi \
62 ${srcdir}/rmail.texi \
63 ${srcdir}/dired.texi \
64 ${srcdir}/calendar.texi \
66 ${srcdir}/custom.texi \
67 ${srcdir}/trouble.texi \
68 ${srcdir}/cmdargs.texi \
70 ${srcdir}/msdog.texi \
72 ${srcdir}/glossary.texi \
79 # Note that all the Info targets build the Info files
80 # in srcdir. There is no provision for Info files
81 # to exist in the build directory.
82 # In a distribution of Emacs, the Info files should be up to date.
84 ..
/info/info: ${INFOSOURCES}
85 cd
$(srcdir); $(MAKEINFO
) --no-split
info.texi
87 info.
dvi: ${INFOSOURCES}
88 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/info.texi
90 ..
/info/emacs
: ${EMACSSOURCES}
91 cd
$(srcdir); $(MAKEINFO
) emacs.texi
93 emacs.
dvi: ${EMACSSOURCES}
94 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/emacs.texi
96 ..
/info/ccmode
: cc-mode.texi
97 cd
$(srcdir); $(MAKEINFO
) cc-mode.texi
98 cc-mode.
dvi: cc-mode.texi
99 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/cc-mode.texi
101 ..
/info/ada-mode
: ada-mode.texi
102 cd
$(srcdir); $(MAKEINFO
) ada-mode.texi
103 ada-mode.
dvi: ada-mode.texi
104 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ada-mode.texi
107 cd
$(srcdir); $(MAKEINFO
) cl.texi
109 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/cl.texi
111 ..
/info/dired-x
: dired-x.texi
112 cd
$(srcdir); $(MAKEINFO
) dired-x.texi
113 dired-x.
dvi: dired-x.texi
114 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/dired-x.texi
116 ..
/info/ediff
: ediff.texi
117 cd
$(srcdir); $(MAKEINFO
) ediff.texi
118 ediff.
dvi: ediff.texi
119 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/ediff.texi
121 ..
/info/forms
: forms.texi
122 cd
$(srcdir); $(MAKEINFO
) forms.texi
123 forms.
dvi: forms.texi
124 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/forms.texi
126 ..
/info/gnus
: gnus.texi
127 cd
$(srcdir); $(MAKEINFO
) gnus.texi
129 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/gnus.texi
131 ..
/info/message
: message.texi
132 cd
$(srcdir); $(MAKEINFO
) message.texi
133 message.
dvi: message.texi
134 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/message.texi
136 ..
/info/mh-e
: mh-e.texi
137 cd
$(srcdir); $(MAKEINFO
) mh-e.texi
139 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/mh-e.texi
141 ..
/info/reftex
: reftex.texi
142 cd
$(srcdir); $(MAKEINFO
) reftex.texi
143 reftex.
dvi: reftex.texi
144 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/reftex.texi
147 cd
$(srcdir); $(MAKEINFO
) sc.texi
149 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/sc.texi
151 ..
/info/vip
: vip.texi
152 cd
$(srcdir); $(MAKEINFO
) vip.texi
154 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/vip.texi
156 ..
/info/viper
: viper.texi
157 cd
$(srcdir); $(MAKEINFO
) viper.texi
158 viper.
dvi: viper.texi
159 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/viper.texi
161 ..
/info/widget
: widget.texi
162 cd
$(srcdir); $(MAKEINFO
) widget.texi
163 widget.
dvi: widget.texi
164 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/widget.texi
166 ..
/info/emacs-faq.
info: faq.texi
167 cd
$(srcdir); $(MAKEINFO
) faq.texi
169 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/faq.texi
171 ..
/etc
/GNU
: gnu1.texi gnu.texi
172 cd
$(srcdir) && makeinfo --no-headers
-o ..
/etc
/GNU gnu1.texi
175 rm -f
*.log
*.cp
*.fn
*.ky
*.pg
*.vr core
182 maintainer-clean
: distclean
183 rm -f
*.aux
*.cps
*.fns
*.kys
*.pgs
*.vrs
184 # Don't delete these, because they are outside the current directory.
185 # for file in $(INFO_TARGETS); do rm -f $${file}*; done
188 # Formerly this directory had texindex.c and getopt.c in it
189 # and this makefile built them to make texindex.
190 # That caused trouble because this is run entirely in the source directory.
191 # Since we expect to get texi2dvi from elsewhere,
192 # it is ok to expect texindex from elsewhere also.