(child_setup) [WINDOWSNT]: Change directory 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 \
791f12e4 18 ../info/message ../info/custom ../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
RS
100
101../info/dired-x: dired-x.texi
b9aed9ca 102 cd $(srcdir); $(MAKEINFO) dired-x.texi
3ff8ce93 103dired-x.dvi: dired-x.texi
e8edd7c5 104 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/dired-x.texi
3ff8ce93 105
11022425 106../info/ediff: ediff.texi
b9aed9ca 107 cd $(srcdir); $(MAKEINFO) ediff.texi
11022425 108ediff.dvi: ediff.texi
e8edd7c5 109 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/ediff.texi
11022425 110
3ff8ce93 111../info/forms: forms.texi
b9aed9ca 112 cd $(srcdir); $(MAKEINFO) forms.texi
3ff8ce93 113forms.dvi: forms.texi
e8edd7c5 114 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/forms.texi
3ff8ce93 115
f32cdadd 116../info/mh-e: mh-e.texi
b9aed9ca 117 cd $(srcdir); $(MAKEINFO) mh-e.texi
f32cdadd 118mh-e.dvi: mh-e.texi
e8edd7c5 119 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/mh-e.texi
f32cdadd 120
3ff8ce93 121../info/sc: sc.texi
b9aed9ca 122 cd $(srcdir); $(MAKEINFO) sc.texi
3ff8ce93 123sc.dvi: sc.texi
e8edd7c5 124 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/sc.texi
3ff8ce93
RS
125
126../info/vip: vip.texi
b9aed9ca 127 cd $(srcdir); $(MAKEINFO) vip.texi
3ff8ce93 128vip.dvi: vip.texi
e8edd7c5 129 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/vip.texi
3ff8ce93
RS
130
131../info/gnus: gnus.texi
b9aed9ca 132 cd $(srcdir); $(MAKEINFO) gnus.texi
3ff8ce93 133gnus.dvi: gnus.texi
e8edd7c5 134 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/gnus.texi
3ff8ce93 135
168054a6
LMI
136../info/message: message.texi
137 cd $(srcdir); $(MAKEINFO) message.texi
138message.dvi: message.texi
139 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/message.texi
140
791f12e4
PA
141../info/widget: widget.texi
142 cd $(srcdir); $(MAKEINFO) widget.texi
143widget.dvi: widget.texi
144 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/widget.texi
145
146../info/custom: customize.texi
147 cd $(srcdir); $(MAKEINFO) customize.texi
148customize.dvi: customize.texi
149 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/customize.texi
150
3ff8ce93
RS
151../etc/GNU: gnu1.texi gnu.texi
152 makeinfo --no-headers -o ../etc/GNU gnu1.texi
153
8dab271c 154../info/viper: viper.texi viper-cmd.texi
b9aed9ca 155 cd $(srcdir); $(MAKEINFO) viper.texi
8dab271c 156viper.dvi: viper.texi viper-cmd.texi
e8edd7c5 157 TEXINPUTS="$(srcdir) $(TEXINPUTS)"; $(TEXI2DVI) ${srcdir}/viper.texi
8dab271c 158
3ff8ce93
RS
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.