Commit | Line | Data |
---|---|---|
306ba736 | 1 | # Makefile for the GNU Emacs Lisp Reference Manual. |
61760ae8 | 2 | |
651f374c TTN |
3 | # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, |
4 | # 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. | |
61760ae8 EZ |
5 | |
6 | # This file is part of GNU Emacs. | |
7 | ||
8 | # GNU Emacs is free software; you can redistribute it and/or modify | |
9 | # it under the terms of the GNU General Public License as published by | |
10 | # the Free Software Foundation; either version 2, or (at your option) | |
11 | # any later version. | |
12 | ||
13 | # GNU Emacs is distributed in the hope that it will be useful, | |
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | # GNU General Public License for more details. | |
17 | ||
18 | # You should have received a copy of the GNU General Public License | |
19 | # along with GNU Emacs; see the file COPYING. If not, write to | |
364c38d3 LK |
20 | # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
21 | # Boston, MA 02110-1301, USA. | |
73804d4b | 22 | |
306ba736 | 23 | # Standard configure variables. |
306ba736 | 24 | srcdir = @srcdir@ |
73804d4b | 25 | |
61760ae8 EZ |
26 | # Tell make where to find source files; this is needed for the makefiles. |
27 | VPATH=@srcdir@ | |
28 | ||
4eeb568b | 29 | infodir = $(srcdir)/../info |
61760ae8 | 30 | |
c3cda320 AS |
31 | TEXI2DVI = texi2dvi |
32 | SHELL = /bin/sh | |
26a781f6 | 33 | INSTALL_INFO = install-info |
4a8b387f | 34 | MAKEINFO = makeinfo --force |
73804d4b RS |
35 | |
36 | # The name of the manual: | |
231ac53b | 37 | VERSION=2.9 |
c7f125f2 | 38 | manual = elisp-manual-21-$(VERSION) |
73804d4b | 39 | |
73804d4b RS |
40 | # List of all the texinfo files in the manual: |
41 | ||
306ba736 GM |
42 | srcs = \ |
43 | $(srcdir)/abbrevs.texi \ | |
44 | $(srcdir)/advice.texi \ | |
45 | $(srcdir)/anti.texi \ | |
46 | $(srcdir)/back.texi \ | |
47 | $(srcdir)/backups.texi \ | |
48 | $(srcdir)/buffers.texi \ | |
306ba736 GM |
49 | $(srcdir)/commands.texi \ |
50 | $(srcdir)/compile.texi \ | |
51 | $(srcdir)/control.texi \ | |
52 | $(srcdir)/customize.texi \ | |
53 | $(srcdir)/debugging.texi \ | |
54 | $(srcdir)/display.texi \ | |
55 | $(srcdir)/edebug.texi \ | |
56 | $(srcdir)/elisp.texi \ | |
57 | $(srcdir)/errors.texi \ | |
58 | $(srcdir)/eval.texi \ | |
59 | $(srcdir)/files.texi \ | |
60 | $(srcdir)/frames.texi \ | |
61 | $(srcdir)/functions.texi \ | |
62 | $(srcdir)/hash.texi \ | |
63 | $(srcdir)/help.texi \ | |
64 | $(srcdir)/hooks.texi \ | |
65 | $(srcdir)/internals.texi \ | |
66 | $(srcdir)/intro.texi \ | |
67 | $(srcdir)/keymaps.texi \ | |
68 | $(srcdir)/lists.texi \ | |
69 | $(srcdir)/loading.texi \ | |
70 | $(srcdir)/locals.texi \ | |
71 | $(srcdir)/macros.texi \ | |
72 | $(srcdir)/maps.texi \ | |
73 | $(srcdir)/markers.texi \ | |
74 | $(srcdir)/minibuf.texi \ | |
75 | $(srcdir)/modes.texi \ | |
76 | $(srcdir)/nonascii.texi \ | |
77 | $(srcdir)/numbers.texi \ | |
78 | $(srcdir)/objects.texi \ | |
79 | $(srcdir)/os.texi \ | |
80 | $(srcdir)/positions.texi \ | |
81 | $(srcdir)/processes.texi \ | |
82 | $(srcdir)/searching.texi \ | |
83 | $(srcdir)/sequences.texi \ | |
84 | $(srcdir)/streams.texi \ | |
85 | $(srcdir)/strings.texi \ | |
86 | $(srcdir)/symbols.texi \ | |
87 | $(srcdir)/syntax.texi \ | |
88 | $(srcdir)/text.texi \ | |
89 | $(srcdir)/tips.texi \ | |
90 | $(srcdir)/variables.texi \ | |
91 | $(srcdir)/windows.texi \ | |
c3cda320 | 92 | $(srcdir)/index.texi \ |
e7fd29af GM |
93 | $(srcdir)/gpl.texi \ |
94 | $(srcdir)/doclicense.texi | |
95 | ||
306ba736 GM |
96 | |
97 | .PHONY: clean | |
73804d4b | 98 | |
52172e23 | 99 | # The info file is named `elisp'. |
707e9f16 | 100 | info: $(infodir)/elisp |
52172e23 | 101 | |
c3cda320 | 102 | $(infodir)/elisp: $(srcs) |
4eeb568b | 103 | $(MAKEINFO) -I. -I$(srcdir) $(srcdir)/elisp.texi -o $(infodir)/elisp |
52172e23 | 104 | |
c3cda320 AS |
105 | elisp.dvi: $(srcs) |
106 | $(TEXI2DVI) -I $(srcdir) $(srcdir)/elisp.texi | |
73804d4b | 107 | |
432fc65c | 108 | # This is for use in a separate distro of the Emacs Lisp manual. |
52172e23 | 109 | install: elisp |
306ba736 | 110 | $(srcdir)/mkinstalldirs $(infodir) |
bc214b06 | 111 | cp elisp elisp-[1-9] elisp-[1-9][0-9] $(infodir) |
722d9ee6 | 112 | ${INSTALL_INFO} --info-dir=${infodir} ${infodir}/elisp |
73804d4b | 113 | |
432fc65c RS |
114 | # This is for use in a separate distro of the Emacs Lisp manual. |
115 | elisp: $(srcs) | |
116 | $(MAKEINFO) -I. -I$(srcdir) $(srcdir)/elisp.texi | |
117 | ||
73804d4b RS |
118 | clean: |
119 | rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \ | |
120 | *.vr *.vrs *.pg *.pgs *.ky *.kys | |
177c0ea7 | 121 | rm -f make.out core |
73804d4b | 122 | |
7a1494ce EZ |
123 | distclean: clean |
124 | ||
2fb9d641 | 125 | maintainer-clean: clean |
94633ca6 | 126 | rm -f elisp.dvi elisp.oaux |
342c350f | 127 | cd $(infodir); rm -f elisp elisp-[1-9] elisp-[1-9][0-9] |
79069c68 | 128 | |
432fc65c | 129 | dist: $(infodir)/elisp elisp.dvi |
0e9b2517 | 130 | -rm -rf temp |
73804d4b RS |
131 | -mkdir temp |
132 | -mkdir temp/$(manual) | |
306ba736 | 133 | -ln $(srcdir)/README $(srcdir)/configure.in $(srcdir)/configure \ |
c3cda320 | 134 | $(srcdir)/Makefile.in $(srcs) \ |
306ba736 | 135 | $(srcdir)/../man/texinfo.tex \ |
432fc65c RS |
136 | elisp.dvi elisp.aux elisp.??s \ |
137 | $(infodir)/elisp $(infodir)/elisp-[1-9] $(infodir)/elisp-[1-9][0-9] \ | |
153d0a6d | 138 | temp/$(manual) |
0e9b2517 | 139 | -(cd temp/$(manual); rm -f mkinstalldirs) |
306ba736 | 140 | cp $(srcdir)/mkinstalldirs temp/$(manual) |
73804d4b RS |
141 | (cd temp/$(manual); rm -f *~) |
142 | (cd temp; tar chf - $(manual)) | gzip > $(manual).tar.gz | |
143 | -rm -rf temp |