84044
|
1 # Makefile for the GNU Emacs Lisp Reference Manual.
|
|
2
|
|
3 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000,
|
|
4 # 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
|
|
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 3, 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
|
|
20 # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
21 # Boston, MA 02110-1301, USA.
|
|
22
|
|
23 # Standard configure variables.
|
|
24 srcdir = @srcdir@
|
|
25
|
|
26 # Tell make where to find source files; this is needed for the makefiles.
|
|
27 VPATH=@srcdir@
|
|
28
|
|
29 infodir = ../info
|
|
30 usermanualdir = $(srcdir)/../man
|
|
31
|
|
32 TEXI2DVI = texi2dvi
|
|
33 SHELL = /bin/sh
|
|
34 INSTALL_INFO = install-info
|
|
35 MAKEINFO = makeinfo --force
|
|
36
|
|
37 # The name of the manual:
|
|
38 VERSION=2.9
|
|
39 manual = elisp-manual-21-$(VERSION)
|
|
40
|
|
41 # List of all the texinfo files in the manual:
|
|
42
|
|
43 srcs = \
|
|
44 $(srcdir)/abbrevs.texi \
|
|
45 $(srcdir)/advice.texi \
|
|
46 $(srcdir)/anti.texi \
|
|
47 $(srcdir)/back.texi \
|
|
48 $(srcdir)/backups.texi \
|
|
49 $(srcdir)/buffers.texi \
|
|
50 $(srcdir)/commands.texi \
|
|
51 $(srcdir)/compile.texi \
|
|
52 $(srcdir)/control.texi \
|
|
53 $(srcdir)/customize.texi \
|
|
54 $(srcdir)/debugging.texi \
|
|
55 $(srcdir)/display.texi \
|
|
56 $(srcdir)/edebug.texi \
|
|
57 $(srcdir)/elisp.texi \
|
|
58 $(srcdir)/errors.texi \
|
|
59 $(srcdir)/eval.texi \
|
|
60 $(srcdir)/files.texi \
|
|
61 $(srcdir)/frames.texi \
|
|
62 $(srcdir)/functions.texi \
|
|
63 $(srcdir)/hash.texi \
|
|
64 $(srcdir)/help.texi \
|
|
65 $(srcdir)/hooks.texi \
|
|
66 $(srcdir)/internals.texi \
|
|
67 $(srcdir)/intro.texi \
|
|
68 $(srcdir)/keymaps.texi \
|
|
69 $(srcdir)/lists.texi \
|
|
70 $(srcdir)/loading.texi \
|
|
71 $(srcdir)/locals.texi \
|
|
72 $(srcdir)/macros.texi \
|
|
73 $(srcdir)/maps.texi \
|
|
74 $(srcdir)/markers.texi \
|
|
75 $(srcdir)/minibuf.texi \
|
|
76 $(srcdir)/modes.texi \
|
|
77 $(srcdir)/nonascii.texi \
|
|
78 $(srcdir)/numbers.texi \
|
|
79 $(srcdir)/objects.texi \
|
|
80 $(srcdir)/os.texi \
|
|
81 $(srcdir)/positions.texi \
|
|
82 $(srcdir)/processes.texi \
|
|
83 $(srcdir)/searching.texi \
|
|
84 $(srcdir)/sequences.texi \
|
|
85 $(srcdir)/streams.texi \
|
|
86 $(srcdir)/strings.texi \
|
|
87 $(srcdir)/symbols.texi \
|
|
88 $(srcdir)/syntax.texi \
|
|
89 $(srcdir)/text.texi \
|
|
90 $(srcdir)/tips.texi \
|
|
91 $(srcdir)/variables.texi \
|
|
92 $(srcdir)/windows.texi \
|
|
93 $(srcdir)/index.texi \
|
|
94 $(srcdir)/gpl.texi \
|
|
95 $(srcdir)/doclicense.texi
|
|
96
|
|
97
|
|
98 .PHONY: clean
|
|
99
|
|
100 # The info file is named `elisp'.
|
|
101 info: $(infodir)/elisp
|
|
102
|
|
103 $(infodir)/elisp: $(srcs)
|
|
104 cd $(srcdir); $(MAKEINFO) -I. -I$(infodir) elisp.texi -o $(infodir)/elisp
|
|
105
|
|
106 elisp.dvi: $(srcs)
|
|
107 $(TEXI2DVI) -I $(srcdir) -I $(usermanualdir) $(srcdir)/elisp.texi
|
|
108
|
|
109 # This is for use in a separate distro of the Emacs Lisp manual.
|
|
110 install: elisp
|
|
111 $(srcdir)/mkinstalldirs $(infodir)
|
|
112 cp elisp elisp-[1-9] elisp-[1-9][0-9] $(infodir)
|
|
113 ${INSTALL_INFO} --info-dir=${infodir} ${infodir}/elisp
|
|
114
|
|
115 # This is for use in a separate distro of the Emacs Lisp manual.
|
|
116 elisp: $(srcs)
|
|
117 $(MAKEINFO) -I. -I$(srcdir) $(srcdir)/elisp.texi
|
|
118
|
|
119 clean:
|
|
120 rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \
|
|
121 *.vr *.vrs *.pg *.pgs *.ky *.kys
|
|
122 rm -f make.out core
|
|
123
|
|
124 distclean: clean
|
|
125
|
|
126 maintainer-clean: clean
|
|
127 rm -f elisp.dvi elisp.oaux
|
|
128 cd $(infodir); rm -f elisp elisp-[1-9] elisp-[1-9][0-9]
|
|
129
|
|
130 dist: $(infodir)/elisp elisp.dvi
|
|
131 -rm -rf temp
|
|
132 -mkdir temp
|
|
133 -mkdir temp/$(manual)
|
|
134 -ln $(srcdir)/README $(srcdir)/configure.in $(srcdir)/configure \
|
|
135 $(srcdir)/Makefile.in $(srcs) \
|
|
136 $(srcdir)/../man/texinfo.tex \
|
|
137 elisp.dvi elisp.aux elisp.??s \
|
|
138 $(infodir)/elisp $(infodir)/elisp-[1-9] $(infodir)/elisp-[1-9][0-9] \
|
|
139 temp/$(manual)
|
|
140 -(cd temp/$(manual); rm -f mkinstalldirs)
|
|
141 cp $(srcdir)/mkinstalldirs temp/$(manual)
|
|
142 (cd temp/$(manual); rm -f *~)
|
|
143 (cd temp; tar chf - $(manual)) | gzip > $(manual).tar.gz
|
|
144 -rm -rf temp
|