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
34 # Redefine `TEX' if `tex' does not invoke plain TeX. For example:
37 INSTALL_INFO = install-info
39 MAKEINFO_OPTS = --force --enable-encoding -I$(srcdir) -I$(emacsdir)
41 # The environment variable and its value to add $(srcdir) to the path
42 # searched for TeX input files.
43 texinputdir = $(srcdir)\..\..\nt\envadd.bat \
44 "TEXINPUTS=$(srcdir);$(texinfodir);$(emacsdir);$(TEXINPUTS)" \
45 "MAKEINFO=$(MAKEINFO) $(MAKEINFO_OPTS)" /C
47 # List of all the texinfo files in the manual:
50 $(emacsdir)/emacsver.texi \
51 $(srcdir)/abbrevs.texi \
52 $(srcdir)/advice.texi \
54 $(srcdir)/backups.texi \
55 $(srcdir)/buffers.texi \
56 $(srcdir)/commands.texi \
57 $(srcdir)/compile.texi \
58 $(srcdir)/control.texi \
59 $(srcdir)/customize.texi \
60 $(srcdir)/debugging.texi \
61 $(srcdir)/display.texi \
62 $(srcdir)/edebug.texi \
63 $(srcdir)/elisp.texi \
64 $(srcdir)/errors.texi \
66 $(srcdir)/files.texi \
67 $(srcdir)/frames.texi \
68 $(srcdir)/functions.texi \
71 $(srcdir)/hooks.texi \
72 $(srcdir)/internals.texi \
73 $(srcdir)/intro.texi \
74 $(srcdir)/keymaps.texi \
75 $(srcdir)/lists.texi \
76 $(srcdir)/loading.texi \
77 $(srcdir)/macros.texi \
79 $(srcdir)/markers.texi \
80 $(srcdir)/minibuf.texi \
81 $(srcdir)/modes.texi \
82 $(srcdir)/nonascii.texi \
83 $(srcdir)/numbers.texi \
84 $(srcdir)/objects.texi \
86 $(srcdir)/package.texi \
87 $(srcdir)/positions.texi \
88 $(srcdir)/processes.texi \
89 $(srcdir)/searching.texi \
90 $(srcdir)/sequences.texi \
91 $(srcdir)/streams.texi \
92 $(srcdir)/strings.texi \
93 $(srcdir)/symbols.texi \
94 $(srcdir)/syntax.texi \
97 $(srcdir)/variables.texi \
98 $(srcdir)/windows.texi \
99 $(srcdir)/index.texi \
101 $(srcdir)/doclicense.texi
106 # The info file is named `elisp'.
108 info: $(infodir)/elisp$(INFO_EXT)
111 $(INSTALL_INFO) --info-dir=$(infodir) $(infodir)/elisp
113 $(infodir)/elisp$(INFO_EXT): $(srcs)
114 $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ $(srcdir)/elisp.texi
117 $(texinputdir) $(TEX) $(srcdir)/elisp.texi
120 - $(DEL) *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \
121 *.vr *.vrs *.pg *.pgs *.ky *.kys
122 - $(DEL) make.out core
123 - $(DEL) $(infodir)/elisp*
128 maintainer-clean: distclean
129 - $(DEL) elisp$(INFO_EXT) elisp$(INFO_EXT)-? elisp$(INFO_EXT)-?? elisp.dvi elisp.oaux