Regenerate configure, src/config.in.
[bpt/emacs.git] / doc / lispref / Makefile.in
CommitLineData
b8d4c8d0
GM
1# Makefile for the GNU Emacs Lisp Reference Manual.
2
3# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000,
114f9c96 4# 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
57ebf0be 5# Free Software Foundation, Inc.
b8d4c8d0
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
b8d4c8d0 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.
b8d4c8d0
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
4c83f6e1 22SHELL = /bin/sh
b8d4c8d0
GM
23
24# Standard configure variables.
25srcdir = @srcdir@
26
27# Tell make where to find source files; this is needed for the makefiles.
28VPATH=@srcdir@
29
17ca7950
GM
30version=@version@
31
d374a422 32infodir = ../../info
aa514a98
GM
33# Directory with the (customized) texinfo.tex file.
34texinfodir = $(srcdir)/../misc
f7a31f11
GM
35# Directory with emacsver.texi.
36emacsdir = $(srcdir)/../emacs
b8d4c8d0 37
f7a31f11 38MAKEINFO = makeinfo --force -I $(emacsdir)
b8d4c8d0 39TEXI2DVI = texi2dvi
64fbeb16 40TEXI2PDF = texi2pdf
b8d4c8d0 41
b8d4c8d0
GM
42# List of all the texinfo files in the manual:
43
44srcs = \
45 $(srcdir)/abbrevs.texi \
46 $(srcdir)/advice.texi \
47 $(srcdir)/anti.texi \
48 $(srcdir)/back.texi \
49 $(srcdir)/backups.texi \
50 $(srcdir)/buffers.texi \
51 $(srcdir)/commands.texi \
52 $(srcdir)/compile.texi \
53 $(srcdir)/control.texi \
54 $(srcdir)/customize.texi \
55 $(srcdir)/debugging.texi \
56 $(srcdir)/display.texi \
57 $(srcdir)/edebug.texi \
58 $(srcdir)/elisp.texi \
59 $(srcdir)/errors.texi \
60 $(srcdir)/eval.texi \
61 $(srcdir)/files.texi \
62 $(srcdir)/frames.texi \
63 $(srcdir)/functions.texi \
64 $(srcdir)/hash.texi \
65 $(srcdir)/help.texi \
66 $(srcdir)/hooks.texi \
67 $(srcdir)/internals.texi \
68 $(srcdir)/intro.texi \
69 $(srcdir)/keymaps.texi \
70 $(srcdir)/lists.texi \
71 $(srcdir)/loading.texi \
72 $(srcdir)/locals.texi \
73 $(srcdir)/macros.texi \
74 $(srcdir)/maps.texi \
75 $(srcdir)/markers.texi \
76 $(srcdir)/minibuf.texi \
77 $(srcdir)/modes.texi \
78 $(srcdir)/nonascii.texi \
79 $(srcdir)/numbers.texi \
80 $(srcdir)/objects.texi \
81 $(srcdir)/os.texi \
82 $(srcdir)/positions.texi \
83 $(srcdir)/processes.texi \
84 $(srcdir)/searching.texi \
85 $(srcdir)/sequences.texi \
86 $(srcdir)/streams.texi \
87 $(srcdir)/strings.texi \
88 $(srcdir)/symbols.texi \
89 $(srcdir)/syntax.texi \
90 $(srcdir)/text.texi \
91 $(srcdir)/tips.texi \
92 $(srcdir)/variables.texi \
93 $(srcdir)/windows.texi \
94 $(srcdir)/index.texi \
95 $(srcdir)/gpl.texi \
96 $(srcdir)/doclicense.texi
97
ea274122
GM
98.PHONY: info dvi pdf
99
b8d4c8d0
GM
100# The info file is named `elisp'.
101info: $(infodir)/elisp
0264072d
GM
102dvi: elisp.dvi
103pdf: elisp.pdf
104
105$(infodir):
8a944cea 106 mkdir $@ || test -d $@
b8d4c8d0 107
0264072d 108$(infodir)/elisp: $(infodir) $(srcs)
8cce34d0 109 cd $(srcdir); $(MAKEINFO) -I. -I$(texinfodir) elisp.texi -o $@
b8d4c8d0
GM
110
111elisp.dvi: $(srcs)
aa514a98 112 $(TEXI2DVI) -I $(srcdir) -I $(texinfodir) $(srcdir)/elisp.texi
b8d4c8d0 113
64fbeb16
GM
114elisp.pdf: $(srcs)
115 $(TEXI2PDF) -I $(srcdir) -I $(texinfodir) $(srcdir)/elisp.texi
116
4c83f6e1
GM
117.PHONY: mostlyclean clean distclean maintainer-clean infoclean
118
119## [12] stuff is from two-volume.make.
120mostlyclean:
121 rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \
122 *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs
123 rm -f elisp[12]*
0264072d 124
4c83f6e1
GM
125clean: mostlyclean
126 rm -f elisp.dvi elisp.pdf vol[12].pdf
17ca7950 127 rm -f emacs-lispref-${version}.tar*
b8d4c8d0
GM
128
129distclean: clean
130
4c83f6e1 131infoclean:
0264072d
GM
132 -cd $(infodir) && rm -f elisp elisp-[1-9] elisp-[1-9][0-9]
133
4c83f6e1
GM
134maintainer-clean: distclean infoclean
135
ea274122
GM
136.PHONY: dist
137
4c83f6e1
GM
138## Note this excludes the two-volume stuff.
139dist:
17ca7950
GM
140 rm -rf emacs-lispref-${version}
141 mkdir emacs-lispref-${version}
4c83f6e1 142 cp ${srcdir}/*.texi ${texinfodir}/texinfo.tex \
17ca7950 143 ${srcdir}/ChangeLog* ${srcdir}/README emacs-lispref-${version}/
4c83f6e1
GM
144 sed -e 's/@sr[c]dir@/./' -e 's/\(texinfodir *=\).*/\1 ./' \
145 -e 's/\(infodir *=\).*/\1 ./' -e 's/^\(clean:.*\)/\1 infoclean/' \
17ca7950
GM
146 -e "s/@ver[s]ion@/${version}/" \
147 ${srcdir}/Makefile.in > emacs-lispref-${version}/Makefile
f7a31f11
GM
148 sed -e "s/@ver[s]ion@/${version}/" \
149 ${emacsdir}/emacsver.texi.in > emacs-lispref-${version}/emacsver.texi
17ca7950
GM
150 tar -cf emacs-lispref-${version}.tar emacs-lispref-${version}
151 rm -rf emacs-lispref-${version}
4c83f6e1 152
0264072d 153### Makefile ends here