(kill-comment): Fixed by rewriting it with syntax-tables rather than regexps
[emacs.git] / man / Makefile.in
blobb74b7547ffeb9b7bdc7ee4a461118790c7477135
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 \
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 ../info/autotype
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 \
23 ada-mode.dvi autotype.dvi
24 INFOSOURCES = info.texi info-stnd.texi
26 # The following rule does not work with all versions of `make'.
27 .SUFFIXES: .texi .dvi
28 .texi.dvi:
29 texi2dvi $<
31 TEXI2DVI = texi2dvi
32 ENVADD = TEXINPUTS="$(srcdir):$(TEXINPUTS)" MAKEINFO="$(MAKEINFO) -I$(srcdir)"
34 EMACSSOURCES= \
35 ${srcdir}/emacs.texi \
36 ${srcdir}/screen.texi \
37 ${srcdir}/commands.texi \
38 ${srcdir}/entering.texi \
39 ${srcdir}/basic.texi \
40 ${srcdir}/mini.texi \
41 ${srcdir}/m-x.texi \
42 ${srcdir}/help.texi \
43 ${srcdir}/mark.texi \
44 ${srcdir}/killing.texi \
45 ${srcdir}/regs.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 \
53 ${srcdir}/mule.texi \
54 ${srcdir}/major.texi \
55 ${srcdir}/indent.texi \
56 ${srcdir}/text.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 \
65 ${srcdir}/misc.texi \
66 ${srcdir}/custom.texi \
67 ${srcdir}/trouble.texi \
68 ${srcdir}/cmdargs.texi \
69 ${srcdir}/anti.texi \
70 ${srcdir}/msdog.texi \
71 ${srcdir}/gnu.texi \
72 ${srcdir}/glossary.texi \
73 ${srcdir}/ack.texi
75 info: $(INFO_TARGETS)
77 dvi: $(DVI_TARGETS)
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
106 ../info/cl: cl.texi
107 cd $(srcdir); $(MAKEINFO) cl.texi
108 cl.dvi: 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
128 gnus.dvi: 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
138 mh-e.dvi: 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
146 ../info/sc: sc.texi
147 cd $(srcdir); $(MAKEINFO) sc.texi
148 sc.dvi: sc.texi
149 $(ENVADD) $(TEXI2DVI) ${srcdir}/sc.texi
151 ../info/vip: vip.texi
152 cd $(srcdir); $(MAKEINFO) vip.texi
153 vip.dvi: 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
168 faq.dvi: 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
174 ../info/autotype: autotype.texi
175 cd $(srcdir); $(MAKEINFO) autotype.texi
176 autotype.dvi: autotype.texi
177 $(ENVADD) $(TEXI2DVI) ${srcdir}/autotype.texi
179 mostlyclean:
180 rm -f *.log *.cp *.fn *.ky *.pg *.vr core
182 clean: mostlyclean
183 rm -f *.dvi
185 distclean: clean
187 maintainer-clean: distclean
188 rm -f *.aux *.cps *.fns *.kys *.pgs *.vrs
189 # Don't delete these, because they are outside the current directory.
190 # for file in $(INFO_TARGETS); do rm -f $${file}*; done
193 # Formerly this directory had texindex.c and getopt.c in it
194 # and this makefile built them to make texindex.
195 # That caused trouble because this is run entirely in the source directory.
196 # Since we expect to get texi2dvi from elsewhere,
197 # it is ok to expect texindex from elsewhere also.