(send_process): Keep decoded string in a local
[emacs.git] / doc / emacs / Makefile.in
blob5682d095eef5bdd1609ff33c6457269b135d20b4
1 #### Makefile for the Emacs Manual
3 # Copyright (C) 1994, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
4 # 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
6 # This file is part of GNU Emacs.
8 # GNU Emacs is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
13 # GNU Emacs is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22 # Where to find the source code. $(srcdir) will be the man
23 # subdirectory of the source tree. This is
24 # set by the configure script's `--srcdir' option.
25 srcdir=@srcdir@
26 top_srcdir=@top_srcdir@
28 # Tell make where to find source files; this is needed for the makefiles.
29 VPATH=@srcdir@
31 ## Where the output files go.
32 ## Note that the setfilename command in the .texi files assumes this.
33 infodir=../../info
35 # The makeinfo program is part of the Texinfo distribution.
36 # Use --force so that it generates output even if there are errors.
37 MAKEINFO = makeinfo --force
39 INFO_TARGETS = $(infodir)/emacs
40 DVI_TARGETS = emacs.dvi
43 TEXI2DVI = texi2dvi
45 # The following rule does not work with all versions of `make'.
46 .SUFFIXES: .texi .dvi
47 .texi.dvi:
48 $(TEXI2DVI) $<
50 ENVADD = TEXINPUTS="$(srcdir):$(TEXINPUTS)" MAKEINFO="$(MAKEINFO) -I$(srcdir)"
53 EMACS_XTRA=\
54 $(srcdir)/arevert-xtra.texi \
55 $(srcdir)/cal-xtra.texi \
56 $(srcdir)/dired-xtra.texi \
57 $(srcdir)/picture-xtra.texi \
58 $(srcdir)/emerge-xtra.texi \
59 $(srcdir)/vc-xtra.texi \
60 $(srcdir)/vc1-xtra.texi \
61 $(srcdir)/fortran-xtra.texi \
62 $(srcdir)/msdog-xtra.texi
64 EMACSSOURCES= \
65 ${srcdir}/emacs.texi \
66 ${srcdir}/doclicense.texi \
67 ${srcdir}/gpl.texi \
68 ${srcdir}/screen.texi \
69 ${srcdir}/commands.texi \
70 ${srcdir}/entering.texi \
71 ${srcdir}/basic.texi \
72 ${srcdir}/mini.texi \
73 ${srcdir}/m-x.texi \
74 ${srcdir}/help.texi \
75 ${srcdir}/mark.texi \
76 ${srcdir}/killing.texi \
77 ${srcdir}/regs.texi \
78 ${srcdir}/display.texi \
79 ${srcdir}/search.texi \
80 ${srcdir}/fixit.texi \
81 ${srcdir}/files.texi \
82 ${srcdir}/buffers.texi \
83 ${srcdir}/windows.texi \
84 ${srcdir}/frames.texi \
85 ${srcdir}/mule.texi \
86 ${srcdir}/major.texi \
87 ${srcdir}/indent.texi \
88 ${srcdir}/text.texi \
89 ${srcdir}/programs.texi \
90 ${srcdir}/building.texi \
91 ${srcdir}/maintaining.texi \
92 ${srcdir}/abbrevs.texi \
93 ${srcdir}/sending.texi \
94 ${srcdir}/rmail.texi \
95 ${srcdir}/dired.texi \
96 ${srcdir}/calendar.texi \
97 ${srcdir}/misc.texi \
98 ${srcdir}/custom.texi \
99 ${srcdir}/trouble.texi \
100 ${srcdir}/cmdargs.texi \
101 ${srcdir}/xresources.texi \
102 ${srcdir}/anti.texi \
103 ${srcdir}/macos.texi \
104 ${srcdir}/msdog.texi \
105 ${srcdir}/gnu.texi \
106 ${srcdir}/glossary.texi \
107 ${srcdir}/ack.texi \
108 ${srcdir}/kmacro.texi \
109 $(EMACS_XTRA)
111 info: $(infodir) $(INFO_TARGETS)
113 $(infodir):
114 mkdir $@
116 dvi: $(DVI_TARGETS)
118 # Note that all the Info targets build the Info files
119 # in srcdir. There is no provision for Info files
120 # to exist in the build directory.
121 # In a distribution of Emacs, the Info files should be up to date.
123 emacs : $(infodir)/emacs
125 $(infodir)/emacs: ${EMACSSOURCES}
126 cd $(srcdir); $(MAKEINFO) emacs.texi
128 emacs.dvi: ${EMACSSOURCES}
129 $(ENVADD) $(TEXI2DVI) ${srcdir}/emacs.texi
132 emacs-xtra.dvi: emacs-xtra.texi $(EMACS_XTRA)
133 $(ENVADD) $(TEXI2DVI) ${srcdir}/emacs-xtra.texi
136 mostlyclean:
137 rm -f *.log *.cp *.fn *.ky *.op *.ops *.pg *.vr core *.tp *.core
138 rm -f *.aux *.cps *.fns *.kys *.pgs *.vrs *.toc
140 clean: mostlyclean
141 rm -f *.dvi
143 distclean: clean
144 # rm -f Makefile
146 maintainer-clean: distclean
147 for file in $(INFO_TARGETS); do rm -f $${file}*; done
150 # Formerly this directory had texindex.c and getopt.c in it
151 # and this makefile built them to make texindex.
152 # That caused trouble because this is run entirely in the source directory.
153 # Since we expect to get texi2dvi from elsewhere,
154 # it is ok to expect texindex from elsewhere also.
157 ### Makefile ends here