(init_cmdargs): Make Vinvocation_directory
[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
8dab271c
RS
15INFO_TARGETS = ../info/emacs ../info/cl ../info/dired-x ../info/forms \
16 ../info/gnus ../info/info \
17 ../info/mh-e ../info/sc ../info/vip ../info/viper
18DVI_TARGETS = emacs.dvi cl.dvi dired-x.dvi forms.dvi gnus.dvi \
19 mh-e.dvi sc.dvi vip.dvi viper.dvi
3ff8ce93
RS
20INFOSOURCES = info.texi info-stnd.texi
21
22# The following rule does not work with all versions of `make'.
23.SUFFIXES: .texi .dvi
24.texi.dvi:
25 texi2dvi $<
26
27TEXI2DVI = texi2dvi
28
29EMACSSOURCES= \
30 ${srcdir}/emacs.texi \
31 ${srcdir}/screen.texi \
32 ${srcdir}/commands.texi \
33 ${srcdir}/entering.texi \
34 ${srcdir}/basic.texi \
35 ${srcdir}/mini.texi \
36 ${srcdir}/m-x.texi \
37 ${srcdir}/help.texi \
38 ${srcdir}/mark.texi \
39 ${srcdir}/killing.texi \
40 ${srcdir}/regs.texi \
41 ${srcdir}/display.texi \
42 ${srcdir}/search.texi \
43 ${srcdir}/fixit.texi \
44 ${srcdir}/files.texi \
45 ${srcdir}/buffers.texi \
46 ${srcdir}/windows.texi \
47 ${srcdir}/frames.texi \
48 ${srcdir}/major.texi \
49 ${srcdir}/indent.texi \
50 ${srcdir}/text.texi \
51 ${srcdir}/programs.texi \
52 ${srcdir}/building.texi \
53 ${srcdir}/abbrevs.texi \
54 ${srcdir}/picture.texi \
55 ${srcdir}/sending.texi \
56 ${srcdir}/rmail.texi \
57 ${srcdir}/dired.texi \
58 ${srcdir}/calendar.texi \
59 ${srcdir}/misc.texi \
60 ${srcdir}/custom.texi \
61 ${srcdir}/trouble.texi \
62 ${srcdir}/cmdargs.texi \
63 ${srcdir}/anti.texi \
64 ${srcdir}/gnu.texi \
65 ${srcdir}/gnu1.texi \
66 ${srcdir}/glossary.texi
67
68info: $(INFO_TARGETS)
69
70dvi: $(DVI_TARGETS)
71
72../info/info: ${INFOSOURCES}
73 $(MAKEINFO) --no-split info.texi
74
75info.dvi: ${INFOSOURCES}
76 $(TEXI2DVI) ${srcdir}/info.texi
77
78../info/emacs: ${EMACSSOURCES}
79 $(MAKEINFO) emacs.texi
80
81emacs.dvi: ${EMACSSOURCES}
82 $(TEXI2DVI) ${srcdir}/emacs.texi
83
84../info/cl: cl.texi
85 $(MAKEINFO) cl.texi
86cl.dvi: cl.texi
87 $(TEXI2DVI) ${srcdir}/cl.texi
88
89../info/dired-x: dired-x.texi
90 $(MAKEINFO) dired-x.texi
91dired-x.dvi: dired-x.texi
92 $(TEXI2DVI) ${srcdir}/dired-x.texi
93
94../info/forms: forms.texi
95 $(MAKEINFO) forms.texi
96forms.dvi: forms.texi
97 $(TEXI2DVI) ${srcdir}/forms.texi
98
f32cdadd
RS
99../info/mh-e: mh-e.texi
100 $(MAKEINFO) mh-e.texi
101mh-e.dvi: mh-e.texi
102 $(TEXI2DVI) ${srcdir}/mh-e.texi
103
3ff8ce93
RS
104../info/sc: sc.texi
105 $(MAKEINFO) sc.texi
106sc.dvi: sc.texi
107 $(TEXI2DVI) ${srcdir}/sc.texi
108
109../info/vip: vip.texi
110 $(MAKEINFO) vip.texi
111vip.dvi: vip.texi
112 $(TEXI2DVI) ${srcdir}/vip.texi
113
114../info/gnus: gnus.texi
115 $(MAKEINFO) gnus.texi
116gnus.dvi: gnus.texi
117 $(TEXI2DVI) ${srcdir}/gnus.texi
118
119../etc/GNU: gnu1.texi gnu.texi
120 makeinfo --no-headers -o ../etc/GNU gnu1.texi
121
8dab271c
RS
122../info/viper: viper.texi viper-cmd.texi
123 $(MAKEINFO) viper.texi
124viper.dvi: viper.texi viper-cmd.texi
125 $(TEXI2DVI) ${srcdir}/viper.texi
126
3ff8ce93
RS
127mostlyclean:
128 rm -f *.log *.cp *.fn *.ky *.pg *.vr core
129
130clean: mostlyclean
131 rm -f *.dvi
132
133distclean: clean
134
135maintainer-clean: distclean
136 rm -f *.aux *.cps *.fns *.kys *.pgs *.vrs
137# Don't delete these, because they are outside the current directory.
138# for file in $(INFO_TARGETS); do rm -f $${file}*; done
139
140
141# Formerly this directory had texindex.c and getopt.c in it
142# and this makefile built them to make texindex.
143# That caused trouble because this is run entirely in the source directory.
144# Since we expect to get texi2dvi from elsewhere,
145# it is ok to expect texindex from elsewhere also.