1 # -*- Makefile -*- for the GNU Emacs Lisp Reference Manual.
3 # Copyright (C) 2003-2014 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 \
53 $(srcdir)/backups.texi \
54 $(srcdir)/buffers.texi \
55 $(srcdir)/commands.texi \
56 $(srcdir)/compile.texi \
57 $(srcdir)/control.texi \
58 $(srcdir)/customize.texi \
59 $(srcdir)/debugging.texi \
60 $(srcdir)/display.texi \
61 $(srcdir)/edebug.texi \
62 $(srcdir)/elisp.texi \
63 $(srcdir)/errors.texi \
65 $(srcdir)/files.texi \
66 $(srcdir)/frames.texi \
67 $(srcdir)/functions.texi \
70 $(srcdir)/hooks.texi \
71 $(srcdir)/internals.texi \
72 $(srcdir)/intro.texi \
73 $(srcdir)/keymaps.texi \
74 $(srcdir)/lists.texi \
75 $(srcdir)/loading.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$(INFO_EXT)
110 $(INSTALL_INFO) --info-dir=$(infodir) $(infodir)/elisp
112 $(infodir)/elisp$(INFO_EXT): $(srcs)
113 $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ $(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$(INFO_EXT) elisp$(INFO_EXT)-? elisp$(INFO_EXT)-?? elisp.dvi elisp.oaux