1 # -*- Makefile -*- for the GNU Emacs Lisp Reference Manual.
3 # Copyright (C) 2003-2012 Free Software Foundation, Inc.
5 # This file is part of GNU Emacs.
7 # GNU Emacs is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
12 # GNU Emacs is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21 # Standard configure variables.
24 infodir = $(srcdir)/../../info
26 # Directory with emacsver.texi.
27 emacsdir = $(srcdir)/../emacs
28 # Directory with the (customized) texinfo.tex file.
29 texinfodir = $(srcdir)/../misc
31 # Redefine `TEX' if `tex' does not invoke plain TeX. For example:
34 INSTALL_INFO = install-info
36 MAKEINFO_OPTS = --force --enable-encoding -I$(srcdir) -I$(emacsdir)
38 # The environment variable and its value to add $(srcdir) to the path
39 # searched for TeX input files.
40 texinputdir = $(srcdir)\..\..\nt\envadd.bat \
41 "TEXINPUTS=$(srcdir);$(texinfodir);$(emacsdir);$(TEXINPUTS)" \
42 "MAKEINFO=$(MAKEINFO) $(MAKEINFO_OPTS)" /C
44 # List of all the texinfo files in the manual:
47 $(emacsdir)/emacsver.texi \
48 $(srcdir)/abbrevs.texi \
49 $(srcdir)/advice.texi \
52 $(srcdir)/backups.texi \
53 $(srcdir)/buffers.texi \
54 $(srcdir)/commands.texi \
55 $(srcdir)/compile.texi \
56 $(srcdir)/control.texi \
57 $(srcdir)/customize.texi \
58 $(srcdir)/debugging.texi \
59 $(srcdir)/display.texi \
60 $(srcdir)/edebug.texi \
61 $(srcdir)/elisp.texi \
62 $(srcdir)/errors.texi \
64 $(srcdir)/files.texi \
65 $(srcdir)/frames.texi \
66 $(srcdir)/functions.texi \
69 $(srcdir)/hooks.texi \
70 $(srcdir)/internals.texi \
71 $(srcdir)/intro.texi \
72 $(srcdir)/keymaps.texi \
73 $(srcdir)/lists.texi \
74 $(srcdir)/loading.texi \
75 $(srcdir)/locals.texi \
76 $(srcdir)/macros.texi \
78 $(srcdir)/markers.texi \
79 $(srcdir)/minibuf.texi \
80 $(srcdir)/modes.texi \
81 $(srcdir)/nonascii.texi \
82 $(srcdir)/numbers.texi \
83 $(srcdir)/objects.texi \
85 $(srcdir)/package.texi \
86 $(srcdir)/positions.texi \
87 $(srcdir)/processes.texi \
88 $(srcdir)/searching.texi \
89 $(srcdir)/sequences.texi \
90 $(srcdir)/streams.texi \
91 $(srcdir)/strings.texi \
92 $(srcdir)/symbols.texi \
93 $(srcdir)/syntax.texi \
96 $(srcdir)/variables.texi \
97 $(srcdir)/windows.texi \
98 $(srcdir)/index.texi \
100 $(srcdir)/doclicense.texi
105 # The info file is named `elisp'.
107 info: $(infodir)/elisp
110 $(INSTALL_INFO) --info-dir=$(infodir) $(infodir)/elisp
112 $(infodir)/elisp: $(srcs)
113 $(MAKEINFO) $(MAKEINFO_OPTS) -o $(infodir)/elisp $(srcdir)/elisp.texi
116 $(texinputdir) $(TEX) $(srcdir)/elisp.texi
119 - $(DEL) *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \
120 *.vr *.vrs *.pg *.pgs *.ky *.kys
121 - $(DEL) make.out core
122 - $(DEL) $(infodir)/elisp*
127 maintainer-clean: distclean
128 - $(DEL) elisp elisp-? elisp-?? elisp.dvi elisp.oaux