(print): Declare local variable C as `int' instead of
[bpt/emacs.git] / man / Makefile.in
CommitLineData
3ff8ce93
RS
1#### Makefile for the Emacs Manual and other documentation.
2
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.
7srcdir=@srcdir@
8
9# Tell make where to find source files; this is needed for the makefiles.
10VPATH=@srcdir@
11
12
13# The makeinfo program is part of the Texinfo distribution.
14MAKEINFO = makeinfo
0aa97803 15INFO_TARGETS = ../info/emacs ../info/ccmode ../info/cl ../info/dired-x \
40bb1f49 16 ../info/ediff ../info/forms ../info/gnus ../info/info \
168054a6 17 ../info/mh-e ../info/sc ../info/vip ../info/viper \
5f016f40 18 ../info/message ../info/customize ../info/widget
40bb1f49 19DVI_TARGETS = emacs.dvi cc-mode.dvi cl.dvi dired-x.dvi ediff.dvi forms.dvi \
791f12e4
PA
20 gnus.dvi mh-e.dvi sc.dvi vip.dvi viper.dvi message.dvi \
21 customize.dvi widget.dvi
3ff8ce93
RS
22INFOSOURCES = info.texi info-stnd.texi
23
24# The following rule does not work with all versions of `make'.
25.SUFFIXES: .texi .dvi
26.texi.dvi:
27 texi2dvi $<
28
29TEXI2DVI = texi2dvi
30
31EMACSSOURCES= \
32 ${srcdir}/emacs.texi \
33 ${srcdir}/screen.texi \
34 ${srcdir}/commands.texi \
35 ${srcdir}/entering.texi \
36 ${srcdir}/basic.texi \
37 ${srcdir}/mini.texi \
38 ${srcdir}/m-x.texi \
39 ${srcdir}/help.texi \
40 ${srcdir}/mark.texi \
41 ${srcdir}/killing.texi \
42 ${srcdir}/regs.texi \
43 ${srcdir}/display.texi \
44 ${srcdir}/search.texi \
45 ${srcdir}/fixit.texi \
46 ${srcdir}/files.texi \
47 ${srcdir}/buffers.texi \
48 ${srcdir}/windows.texi \
49 ${srcdir}/frames.texi \
50 ${srcdir}/major.texi \
51 ${srcdir}/indent.texi \
52 ${srcdir}/text.texi \
53 ${srcdir}/programs.texi \
54 ${srcdir}/building.texi \
55 ${srcdir}/abbrevs.texi \
56 ${srcdir}/picture.texi \
57 ${srcdir}/sending.texi \
58 ${srcdir}/rmail.texi \
59 ${srcdir}/dired.texi \
60 ${srcdir}/calendar.texi \
61 ${srcdir}/misc.texi \
62 ${srcdir}/custom.texi \
63 ${srcdir}/trouble.texi \
64 ${srcdir}/cmdargs.texi \
65 ${srcdir}/anti.texi \
66 ${srcdir}/gnu.texi \
67 ${srcdir}/gnu1.texi \
68 ${srcdir}/glossary.texi
69
70info: $(INFO_TARGETS)
71
72dvi: $(DVI_TARGETS)
73
e8edd7c5
RS
74# Note that all the Info targets build the Info files
75# in srcdir. There is no provision for Info files
76# to exist in the build directory.
77# In a distribution of Emacs, the Info files should be up to date.
78
3ff8ce93 79../info/info: ${INFOSOURCES}
b9aed9ca 80 cd $(srcdir); $(MAKEINFO) --no-split info.texi
3ff8ce93
RS
81
82info.dvi: ${INFOSOURCES}
e8edd7c5 83 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/info.texi
3ff8ce93
RS
84
85../info/emacs: ${EMACSSOURCES}
b9aed9ca 86 cd $(srcdir); $(MAKEINFO) emacs.texi
3ff8ce93
RS
87
88emacs.dvi: ${EMACSSOURCES}
e8edd7c5 89 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/emacs.texi
3ff8ce93 90
0aa97803 91../info/ccmode: cc-mode.texi
b9aed9ca 92 cd $(srcdir); $(MAKEINFO) cc-mode.texi
40bb1f49 93cc-mode.dvi: cc-mode.texi
e8edd7c5 94 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/cc-mode.texi
40bb1f49 95
3ff8ce93 96../info/cl: cl.texi
b9aed9ca 97 cd $(srcdir); $(MAKEINFO) cl.texi
3ff8ce93 98cl.dvi: cl.texi
e8edd7c5 99 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/cl.texi
3ff8ce93 100
5f016f40
PE
101../info/customize: customize.texi
102 cd $(srcdir); $(MAKEINFO) customize.texi
103customize.dvi: customize.texi
104 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/customize.texi
105
3ff8ce93 106../info/dired-x: dired-x.texi
b9aed9ca 107 cd $(srcdir); $(MAKEINFO) dired-x.texi
3ff8ce93 108dired-x.dvi: dired-x.texi
e8edd7c5 109 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/dired-x.texi
3ff8ce93 110
11022425 111../info/ediff: ediff.texi
b9aed9ca 112 cd $(srcdir); $(MAKEINFO) ediff.texi
11022425 113ediff.dvi: ediff.texi
e8edd7c5 114 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/ediff.texi
11022425 115
3ff8ce93 116../info/forms: forms.texi
b9aed9ca 117 cd $(srcdir); $(MAKEINFO) forms.texi
3ff8ce93 118forms.dvi: forms.texi
e8edd7c5 119 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/forms.texi
3ff8ce93 120
5f016f40
PE
121../info/gnus: gnus.texi
122 cd $(srcdir); $(MAKEINFO) gnus.texi
123gnus.dvi: gnus.texi
124 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/gnus.texi
125
126../info/message: message.texi
127 cd $(srcdir); $(MAKEINFO) message.texi
128message.dvi: message.texi
129 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/message.texi
130
f32cdadd 131../info/mh-e: mh-e.texi
b9aed9ca 132 cd $(srcdir); $(MAKEINFO) mh-e.texi
f32cdadd 133mh-e.dvi: mh-e.texi
e8edd7c5 134 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/mh-e.texi
f32cdadd 135
3ff8ce93 136../info/sc: sc.texi
b9aed9ca 137 cd $(srcdir); $(MAKEINFO) sc.texi
3ff8ce93 138sc.dvi: sc.texi
e8edd7c5 139 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/sc.texi
3ff8ce93
RS
140
141../info/vip: vip.texi
b9aed9ca 142 cd $(srcdir); $(MAKEINFO) vip.texi
3ff8ce93 143vip.dvi: vip.texi
e8edd7c5 144 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/vip.texi
3ff8ce93 145
5f016f40
PE
146../info/viper: viper.texi
147 cd $(srcdir); $(MAKEINFO) viper.texi
148viper.dvi: viper.texi
149 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/viper.texi
168054a6 150
791f12e4
PA
151../info/widget: widget.texi
152 cd $(srcdir); $(MAKEINFO) widget.texi
153widget.dvi: widget.texi
154 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/widget.texi
155
3ff8ce93
RS
156../etc/GNU: gnu1.texi gnu.texi
157 makeinfo --no-headers -o ../etc/GNU gnu1.texi
158
159mostlyclean:
160 rm -f *.log *.cp *.fn *.ky *.pg *.vr core
161
162clean: mostlyclean
163 rm -f *.dvi
164
165distclean: clean
166
167maintainer-clean: distclean
168 rm -f *.aux *.cps *.fns *.kys *.pgs *.vrs
169# Don't delete these, because they are outside the current directory.
170# for file in $(INFO_TARGETS); do rm -f $${file}*; done
171
172
173# Formerly this directory had texindex.c and getopt.c in it
174# and this makefile built them to make texindex.
175# That caused trouble because this is run entirely in the source directory.
176# Since we expect to get texi2dvi from elsewhere,
177# it is ok to expect texindex from elsewhere also.