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