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 ..
/info/dired-x \
16 ..
/info/ediff ..
/info/forms ..
/info/gnus ..
/info/info \
17 ..
/info/mh-e ..
/info/sc ..
/info/vip ..
/info/viper \
19 DVI_TARGETS
= emacs.
dvi cc-mode.
dvi cl.
dvi dired-x.
dvi ediff.
dvi forms.
dvi \
20 gnus.
dvi mh-e.
dvi sc.
dvi vip.
dvi viper.
dvi message.
dvi
21 INFOSOURCES
= info.texi info-stnd.texi
23 # The following rule does not work with all versions of `make'.
31 ${srcdir}/emacs.texi \
32 ${srcdir}/screen.texi \
33 ${srcdir}/commands.texi \
34 ${srcdir}/entering.texi \
35 ${srcdir}/basic.texi \
40 ${srcdir}/killing.texi \
42 ${srcdir}/display.texi \
43 ${srcdir}/search.texi \
44 ${srcdir}/fixit.texi \
45 ${srcdir}/files.texi \
46 ${srcdir}/buffers.texi \
47 ${srcdir}/windows.texi \
48 ${srcdir}/frames.texi \
49 ${srcdir}/major.texi \
50 ${srcdir}/indent.texi \
52 ${srcdir}/programs.texi \
53 ${srcdir}/building.texi \
54 ${srcdir}/abbrevs.texi \
55 ${srcdir}/picture.texi \
56 ${srcdir}/sending.texi \
57 ${srcdir}/rmail.texi \
58 ${srcdir}/dired.texi \
59 ${srcdir}/calendar.texi \
61 ${srcdir}/custom.texi \
62 ${srcdir}/trouble.texi \
63 ${srcdir}/cmdargs.texi \
67 ${srcdir}/glossary.texi
73 # Note that all the Info targets build the Info files
74 # in srcdir. There is no provision for Info files
75 # to exist in the build directory.
76 # In a distribution of Emacs, the Info files should be up to date.
78 ..
/info/info: ${INFOSOURCES}
79 cd
$(srcdir); $(MAKEINFO
) --no-split
info.texi
81 info.
dvi: ${INFOSOURCES}
82 TEXINPUTS
="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI
) ${srcdir}/info.texi
84 ..
/info/emacs
: ${EMACSSOURCES}
85 cd
$(srcdir); $(MAKEINFO
) emacs.texi
87 emacs.
dvi: ${EMACSSOURCES}
88 TEXINPUTS
="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI
) ${srcdir}/emacs.texi
90 ..
/info/ccmode
: cc-mode.texi
91 cd
$(srcdir); $(MAKEINFO
) cc-mode.texi
92 cc-mode.
dvi: cc-mode.texi
93 TEXINPUTS
="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI
) ${srcdir}/cc-mode.texi
96 cd
$(srcdir); $(MAKEINFO
) cl.texi
98 TEXINPUTS
="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI
) ${srcdir}/cl.texi
100 ..
/info/dired-x
: dired-x.texi
101 cd
$(srcdir); $(MAKEINFO
) dired-x.texi
102 dired-x.
dvi: dired-x.texi
103 TEXINPUTS
="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI
) ${srcdir}/dired-x.texi
105 ..
/info/ediff
: ediff.texi
106 cd
$(srcdir); $(MAKEINFO
) ediff.texi
107 ediff.
dvi: ediff.texi
108 TEXINPUTS
="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI
) ${srcdir}/ediff.texi
110 ..
/info/forms
: forms.texi
111 cd
$(srcdir); $(MAKEINFO
) forms.texi
112 forms.
dvi: forms.texi
113 TEXINPUTS
="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI
) ${srcdir}/forms.texi
115 ..
/info/mh-e
: mh-e.texi
116 cd
$(srcdir); $(MAKEINFO
) mh-e.texi
118 TEXINPUTS
="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI
) ${srcdir}/mh-e.texi
121 cd
$(srcdir); $(MAKEINFO
) sc.texi
123 TEXINPUTS
="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI
) ${srcdir}/sc.texi
125 ..
/info/vip
: vip.texi
126 cd
$(srcdir); $(MAKEINFO
) vip.texi
128 TEXINPUTS
="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI
) ${srcdir}/vip.texi
130 ..
/info/gnus
: gnus.texi
131 cd
$(srcdir); $(MAKEINFO
) gnus.texi
133 TEXINPUTS
="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI
) ${srcdir}/gnus.texi
135 ..
/info/message
: message.texi
136 cd
$(srcdir); $(MAKEINFO
) message.texi
137 message.
dvi: message.texi
138 TEXINPUTS
="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI
) ${srcdir}/message.texi
140 ..
/etc
/GNU
: gnu1.texi gnu.texi
141 makeinfo --no-headers
-o ..
/etc
/GNU gnu1.texi
143 ..
/info/viper
: viper.texi viper-cmd.texi
144 cd
$(srcdir); $(MAKEINFO
) viper.texi
145 viper.
dvi: viper.texi viper-cmd.texi
146 TEXINPUTS
="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI
) ${srcdir}/viper.texi
149 rm -f
*.log
*.cp
*.fn
*.ky
*.pg
*.vr core
156 maintainer-clean
: distclean
157 rm -f
*.aux
*.cps
*.fns
*.kys
*.pgs
*.vrs
158 # Don't delete these, because they are outside the current directory.
159 # for file in $(INFO_TARGETS); do rm -f $${file}*; done
162 # Formerly this directory had texindex.c and getopt.c in it
163 # and this makefile built them to make texindex.
164 # That caused trouble because this is run entirely in the source directory.
165 # Since we expect to get texi2dvi from elsewhere,
166 # it is ok to expect texindex from elsewhere also.