sieve-manage.el: Add authenticate function.
[bpt/emacs.git] / doc / emacs / Makefile.in
CommitLineData
df42eec6 1#### Makefile for the Emacs Manual
8cf51b2c
GM
2
3# Copyright (C) 1994, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
5f874327
GM
4# 2004, 2005, 2006, 2007, 2008, 2009, 2010
5# Free Software Foundation, Inc.
8cf51b2c
GM
6
7# This file is part of GNU Emacs.
8
352c8b4a 9# GNU Emacs is free software: you can redistribute it and/or modify
8cf51b2c 10# it under the terms of the GNU General Public License as published by
352c8b4a
GM
11# the Free Software Foundation, either version 3 of the License, or
12# (at your option) any later version.
8cf51b2c
GM
13
14# GNU Emacs is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
18
19# You should have received a copy of the GNU General Public License
352c8b4a
GM
20# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21
0264072d 22SHELL = /bin/sh
8cf51b2c 23
4c83f6e1
GM
24# Where to find the source code. $(srcdir) will be the doc/emacs subdirectory
25# of the source tree. This is set by configure's `--srcdir' option.
8cf51b2c 26srcdir=@srcdir@
8cf51b2c
GM
27
28# Tell make where to find source files; this is needed for the makefiles.
29VPATH=@srcdir@
30
df42eec6
GM
31## Where the output files go.
32## Note that the setfilename command in the .texi files assumes this.
33infodir=../../info
2358ae54
GM
34# Directory with the (customized) texinfo.tex file.
35texinfodir = $(srcdir)/../misc
8cf51b2c
GM
36
37# The makeinfo program is part of the Texinfo distribution.
38# Use --force so that it generates output even if there are errors.
39MAKEINFO = makeinfo --force
df42eec6 40
df42eec6 41TEXI2DVI = texi2dvi
703d26ba 42TEXI2PDF = texi2pdf
8cf51b2c
GM
43
44# The following rule does not work with all versions of `make'.
45.SUFFIXES: .texi .dvi
46.texi.dvi:
df42eec6 47 $(TEXI2DVI) $<
8cf51b2c 48
2358ae54 49ENVADD = TEXINPUTS="$(srcdir):$(texinfodir):$(TEXINPUTS)" MAKEINFO="$(MAKEINFO) -I$(srcdir)"
8cf51b2c 50
df42eec6 51
4c83f6e1
GM
52EMACS_XTRA= \
53 ${srcdir}/emacs-xtra.texi \
8cf51b2c
GM
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 \
8cf51b2c
GM
61 $(srcdir)/fortran-xtra.texi \
62 $(srcdir)/msdog-xtra.texi
63
64EMACSSOURCES= \
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)
110
0264072d 111info: $(infodir)/emacs
8cf51b2c 112
df42eec6 113$(infodir):
8a944cea 114 mkdir $@ || test -d $@
8cf51b2c 115
0264072d
GM
116dvi: emacs.dvi
117pdf: emacs.pdf
8cf51b2c 118
0264072d
GM
119# Note that all the Info targets build the Info files in srcdir.
120# There is no provision for Info files to exist in the build directory.
8cf51b2c
GM
121# In a distribution of Emacs, the Info files should be up to date.
122
df42eec6 123emacs : $(infodir)/emacs
8cf51b2c 124
0264072d
GM
125$(infodir)/emacs: $(infodir) ${EMACSSOURCES}
126 cd $(srcdir); $(MAKEINFO) emacs.texi -o $@
8cf51b2c
GM
127
128emacs.dvi: ${EMACSSOURCES}
129 $(ENVADD) $(TEXI2DVI) ${srcdir}/emacs.texi
130
703d26ba
GM
131emacs.pdf: ${EMACSSOURCES}
132 $(ENVADD) $(TEXI2PDF) ${srcdir}/emacs.texi
133
8cf51b2c 134
4c83f6e1 135emacs-xtra.dvi: $(EMACS_XTRA)
8cf51b2c
GM
136 $(ENVADD) $(TEXI2DVI) ${srcdir}/emacs-xtra.texi
137
4c83f6e1 138emacs-xtra.pdf: $(EMACS_XTRA)
703d26ba
GM
139 $(ENVADD) $(TEXI2PDF) ${srcdir}/emacs-xtra.texi
140
4c83f6e1 141.PHONY: mostlyclean clean distclean maintainer-clean infoclean
8cf51b2c 142
4c83f6e1 143## Temp files.
8cf51b2c 144mostlyclean:
4c83f6e1
GM
145 rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \
146 *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs
8cf51b2c 147
4c83f6e1 148## Products not in the release tarfiles.
8cf51b2c 149clean: mostlyclean
4c83f6e1 150 rm -f emacs.dvi emacs-xtra.dvi emacs.pdf emacs-xtra.pdf
8cf51b2c
GM
151
152distclean: clean
153
4c83f6e1
GM
154## In the standalone tarfile, the clean rule runs this.
155infoclean:
0264072d 156 -cd $(infodir) && rm -f emacs emacs-[1-9] emacs-[1-9][0-9]
df42eec6 157
4c83f6e1
GM
158maintainer-clean: distclean infoclean
159
160## Make a standalone tarfile of the Emacs manual sources.
161## The [c] is a dumb way to prevent configure expanding it.
162## The emacs: rule becomes circular when we change infodir to ".".
163dist:
164 rm -rf emacs
165 mkdir emacs
166 cp ${srcdir}/*.texi ${texinfodir}/texinfo.tex \
167 ${srcdir}/ChangeLog* emacs/
168 sed -e 's/@sr[c]dir@/./' -e 's/\(texinfodir *=\).*/\1 ./' \
169 -e 's/\(infodir *=\).*/\1 ./' -e '/^emacs *:/d' \
170 -e 's/^\(clean:.*\)/\1 infoclean/' \
171 ${srcdir}/Makefile.in > emacs/Makefile
172 tar -cf emacs-texi.tar emacs
173 rm -rf emacs
174
df42eec6 175### Makefile ends here