Commit | Line | Data |
---|---|---|
b8d4c8d0 GM |
1 | # -*- Makefile -*- for the GNU Emacs Lisp Reference Manual. |
2 | ||
edb3ac8c | 3 | # Copyright (C) 2003-2012 Free Software Foundation, Inc. |
b8d4c8d0 GM |
4 | |
5 | # This file is part of GNU Emacs. | |
6 | ||
352c8b4a | 7 | # GNU Emacs is free software: you can redistribute it and/or modify |
b8d4c8d0 | 8 | # it under the terms of the GNU General Public License as published by |
352c8b4a GM |
9 | # the Free Software Foundation, either version 3 of the License, or |
10 | # (at your option) any later version. | |
b8d4c8d0 GM |
11 | |
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. | |
16 | ||
17 | # You should have received a copy of the GNU General Public License | |
352c8b4a GM |
18 | # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
19 | ||
b8d4c8d0 GM |
20 | |
21 | # Standard configure variables. | |
22 | srcdir = . | |
23 | ||
df43c5b7 | 24 | infodir = $(srcdir)/../../info |
b8d4c8d0 | 25 | |
6513b232 EZ |
26 | # Directory with emacsver.texi. |
27 | emacsdir = $(srcdir)/../emacs | |
bf3dae7e EZ |
28 | # Directory with the (customized) texinfo.tex file. |
29 | texinfodir = $(srcdir)/../misc | |
6513b232 | 30 | |
b8d4c8d0 GM |
31 | # Redefine `TEX' if `tex' does not invoke plain TeX. For example: |
32 | # TEX=platex | |
33 | TEX=tex | |
34 | INSTALL_INFO = install-info | |
bf3dae7e | 35 | MAKEINFO = makeinfo |
63a329f8 | 36 | MAKEINFO_OPTS = --force --enable-encoding -I$(srcdir) -I$(emacsdir) |
b8d4c8d0 GM |
37 | |
38 | # The environment variable and its value to add $(srcdir) to the path | |
39 | # searched for TeX input files. | |
bf3dae7e | 40 | texinputdir = $(srcdir)\..\..\nt\envadd.bat \ |
2aa43abb | 41 | "TEXINPUTS=$(srcdir);$(texinfodir);$(emacsdir);$(TEXINPUTS)" \ |
bf3dae7e | 42 | "MAKEINFO=$(MAKEINFO) $(MAKEINFO_OPTS)" /C |
b8d4c8d0 | 43 | |
b8d4c8d0 GM |
44 | # List of all the texinfo files in the manual: |
45 | ||
46 | srcs = \ | |
6513b232 | 47 | $(emacsdir)/emacsver.texi \ |
b8d4c8d0 GM |
48 | $(srcdir)/abbrevs.texi \ |
49 | $(srcdir)/advice.texi \ | |
50 | $(srcdir)/anti.texi \ | |
b8d4c8d0 GM |
51 | $(srcdir)/backups.texi \ |
52 | $(srcdir)/buffers.texi \ | |
53 | $(srcdir)/commands.texi \ | |
54 | $(srcdir)/compile.texi \ | |
55 | $(srcdir)/control.texi \ | |
56 | $(srcdir)/customize.texi \ | |
57 | $(srcdir)/debugging.texi \ | |
58 | $(srcdir)/display.texi \ | |
59 | $(srcdir)/edebug.texi \ | |
60 | $(srcdir)/elisp.texi \ | |
61 | $(srcdir)/errors.texi \ | |
62 | $(srcdir)/eval.texi \ | |
63 | $(srcdir)/files.texi \ | |
64 | $(srcdir)/frames.texi \ | |
65 | $(srcdir)/functions.texi \ | |
66 | $(srcdir)/hash.texi \ | |
67 | $(srcdir)/help.texi \ | |
68 | $(srcdir)/hooks.texi \ | |
69 | $(srcdir)/internals.texi \ | |
70 | $(srcdir)/intro.texi \ | |
71 | $(srcdir)/keymaps.texi \ | |
72 | $(srcdir)/lists.texi \ | |
73 | $(srcdir)/loading.texi \ | |
b8d4c8d0 GM |
74 | $(srcdir)/macros.texi \ |
75 | $(srcdir)/maps.texi \ | |
76 | $(srcdir)/markers.texi \ | |
77 | $(srcdir)/minibuf.texi \ | |
78 | $(srcdir)/modes.texi \ | |
79 | $(srcdir)/nonascii.texi \ | |
80 | $(srcdir)/numbers.texi \ | |
81 | $(srcdir)/objects.texi \ | |
82 | $(srcdir)/os.texi \ | |
78f5433f | 83 | $(srcdir)/package.texi \ |
b8d4c8d0 GM |
84 | $(srcdir)/positions.texi \ |
85 | $(srcdir)/processes.texi \ | |
86 | $(srcdir)/searching.texi \ | |
87 | $(srcdir)/sequences.texi \ | |
88 | $(srcdir)/streams.texi \ | |
89 | $(srcdir)/strings.texi \ | |
90 | $(srcdir)/symbols.texi \ | |
91 | $(srcdir)/syntax.texi \ | |
92 | $(srcdir)/text.texi \ | |
93 | $(srcdir)/tips.texi \ | |
94 | $(srcdir)/variables.texi \ | |
95 | $(srcdir)/windows.texi \ | |
96 | $(srcdir)/index.texi \ | |
97 | $(srcdir)/gpl.texi \ | |
98 | $(srcdir)/doclicense.texi | |
99 | ||
100 | ||
101 | .PHONY: clean | |
102 | ||
103 | # The info file is named `elisp'. | |
104 | ||
f272c0fd | 105 | info: $(infodir)/elisp |
b8d4c8d0 | 106 | |
f272c0fd | 107 | $(infodir)/dir: |
b8d4c8d0 GM |
108 | $(INSTALL_INFO) --info-dir=$(infodir) $(infodir)/elisp |
109 | ||
110 | $(infodir)/elisp: $(srcs) | |
bf3dae7e | 111 | $(MAKEINFO) $(MAKEINFO_OPTS) -o $(infodir)/elisp $(srcdir)/elisp.texi |
b8d4c8d0 GM |
112 | |
113 | elisp.dvi: $(srcs) | |
bf3dae7e | 114 | $(texinputdir) $(TEX) $(srcdir)/elisp.texi |
b8d4c8d0 GM |
115 | |
116 | clean: | |
117 | - $(DEL) *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \ | |
118 | *.vr *.vrs *.pg *.pgs *.ky *.kys | |
119 | - $(DEL) make.out core | |
120 | - $(DEL) $(infodir)/elisp* | |
121 | ||
122 | distclean: clean | |
6d52677d | 123 | - $(DEL) makefile |
b8d4c8d0 GM |
124 | |
125 | maintainer-clean: distclean | |
126 | - $(DEL) elisp elisp-? elisp-?? elisp.dvi elisp.oaux |