1 # -*- Makefile -*- for the GNU Emacs Lisp Reference Manual.
3 # Copyright (C) 2003-2011 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);$(texinputdir);$(TEXINPUTS)" \
42 "MAKEINFO=$(MAKEINFO) $(MAKEINFO_OPTS)" /C
44 # The name of the manual:
46 ## FIXME can this be set by configure, as per Makefile.in?
47 manual = elisp-manual-23-$(VERSION)
49 # List of all the texinfo files in the manual:
52 $(emacsdir)/emacsver.texi \
53 $(srcdir)/abbrevs.texi \
54 $(srcdir)/advice.texi \
57 $(srcdir)/backups.texi \
58 $(srcdir)/buffers.texi \
59 $(srcdir)/commands.texi \
60 $(srcdir)/compile.texi \
61 $(srcdir)/control.texi \
62 $(srcdir)/customize.texi \
63 $(srcdir)/debugging.texi \
64 $(srcdir)/display.texi \
65 $(srcdir)/edebug.texi \
66 $(srcdir)/elisp.texi \
67 $(srcdir)/errors.texi \
69 $(srcdir)/files.texi \
70 $(srcdir)/frames.texi \
71 $(srcdir)/functions.texi \
74 $(srcdir)/hooks.texi \
75 $(srcdir)/internals.texi \
76 $(srcdir)/intro.texi \
77 $(srcdir)/keymaps.texi \
78 $(srcdir)/lists.texi \
79 $(srcdir)/loading.texi \
80 $(srcdir)/locals.texi \
81 $(srcdir)/macros.texi \
83 $(srcdir)/markers.texi \
84 $(srcdir)/minibuf.texi \
85 $(srcdir)/modes.texi \
86 $(srcdir)/nonascii.texi \
87 $(srcdir)/numbers.texi \
88 $(srcdir)/objects.texi \
90 $(srcdir)/package.texi \
91 $(srcdir)/positions.texi \
92 $(srcdir)/processes.texi \
93 $(srcdir)/searching.texi \
94 $(srcdir)/sequences.texi \
95 $(srcdir)/streams.texi \
96 $(srcdir)/strings.texi \
97 $(srcdir)/symbols.texi \
98 $(srcdir)/syntax.texi \
100 $(srcdir)/tips.texi \
101 $(srcdir)/variables.texi \
102 $(srcdir)/windows.texi \
103 $(srcdir)/index.texi \
105 $(srcdir)/doclicense.texi
110 # The info file is named `elisp'.
112 info: $(infodir)/elisp
115 $(INSTALL_INFO) --info-dir=$(infodir) $(infodir)/elisp
117 $(infodir)/elisp: $(srcs)
118 $(MAKEINFO) $(MAKEINFO_OPTS) -o $(infodir)/elisp $(srcdir)/elisp.texi
121 $(texinputdir) $(TEX) $(srcdir)/elisp.texi
124 - $(DEL) *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \
125 *.vr *.vrs *.pg *.pgs *.ky *.kys
126 - $(DEL) make.out core
127 - $(DEL) $(infodir)/elisp*
132 maintainer-clean: distclean
133 - $(DEL) elisp elisp-? elisp-?? elisp.dvi elisp.oaux