(save-match-data): Use save-match-data-internal
[emacs.git] / man / Makefile.in
blob9fdebc7e1cc3f1e115818e9107f2b867f2ed0d51
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.
7 srcdir=@srcdir@
9 # Tell make where to find source files; this is needed for the makefiles.
10 VPATH=@srcdir@
13 # The makeinfo program is part of the Texinfo distribution.
14 MAKEINFO = makeinfo
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 \
18 ../info/message
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'.
24 .SUFFIXES: .texi .dvi
25 .texi.dvi:
26 texi2dvi $<
28 TEXI2DVI = texi2dvi
30 EMACSSOURCES= \
31 ${srcdir}/emacs.texi \
32 ${srcdir}/screen.texi \
33 ${srcdir}/commands.texi \
34 ${srcdir}/entering.texi \
35 ${srcdir}/basic.texi \
36 ${srcdir}/mini.texi \
37 ${srcdir}/m-x.texi \
38 ${srcdir}/help.texi \
39 ${srcdir}/mark.texi \
40 ${srcdir}/killing.texi \
41 ${srcdir}/regs.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 \
51 ${srcdir}/text.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 \
60 ${srcdir}/misc.texi \
61 ${srcdir}/custom.texi \
62 ${srcdir}/trouble.texi \
63 ${srcdir}/cmdargs.texi \
64 ${srcdir}/anti.texi \
65 ${srcdir}/gnu.texi \
66 ${srcdir}/gnu1.texi \
67 ${srcdir}/glossary.texi
69 info: $(INFO_TARGETS)
71 dvi: $(DVI_TARGETS)
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
95 ../info/cl: cl.texi
96 cd $(srcdir); $(MAKEINFO) cl.texi
97 cl.dvi: 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
117 mh-e.dvi: mh-e.texi
118 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/mh-e.texi
120 ../info/sc: sc.texi
121 cd $(srcdir); $(MAKEINFO) sc.texi
122 sc.dvi: sc.texi
123 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/sc.texi
125 ../info/vip: vip.texi
126 cd $(srcdir); $(MAKEINFO) vip.texi
127 vip.dvi: vip.texi
128 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/vip.texi
130 ../info/gnus: gnus.texi
131 cd $(srcdir); $(MAKEINFO) gnus.texi
132 gnus.dvi: 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
148 mostlyclean:
149 rm -f *.log *.cp *.fn *.ky *.pg *.vr core
151 clean: mostlyclean
152 rm -f *.dvi
154 distclean: clean
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.