1 # Makefile for the GNU Emacs Lisp Reference Manual.
3 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000,
4 # 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
5 # Free Software Foundation, Inc.
7 # This file is part of GNU Emacs.
9 # GNU Emacs is free software: you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 3 of the License, or
12 # (at your option) any later version.
14 # GNU Emacs is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24 # Standard configure variables.
27 # Tell make where to find source files; this is needed for the makefiles.
33 # Directory with the (customized) texinfo.tex file.
34 texinfodir
= $(srcdir)/..
/misc
36 MAKEINFO
= makeinfo --force
40 # List of all the texinfo files in the manual:
43 $(srcdir)/abbrevs.texi \
44 $(srcdir)/advice.texi \
47 $(srcdir)/backups.texi \
48 $(srcdir)/buffers.texi \
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 \
59 $(srcdir)/files.texi \
60 $(srcdir)/frames.texi \
61 $(srcdir)/functions.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 \
73 $(srcdir)/markers.texi \
74 $(srcdir)/minibuf.texi \
75 $(srcdir)/modes.texi \
76 $(srcdir)/nonascii.texi \
77 $(srcdir)/numbers.texi \
78 $(srcdir)/objects.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 \
90 $(srcdir)/variables.texi \
91 $(srcdir)/windows.texi \
92 $(srcdir)/index.texi \
94 $(srcdir)/doclicense.texi
96 # The info file is named `elisp'.
97 info: $(infodir)/elisp
102 mkdir
$@ ||
test -d
$@
104 $(infodir)/elisp
: $(infodir) $(srcs
)
105 cd
$(srcdir); $(MAKEINFO
) -I.
-I
$(texinfodir
) elisp.texi
-o
$@
108 $(TEXI2DVI
) -I
$(srcdir) -I
$(texinfodir
) $(srcdir)/elisp.texi
111 $(TEXI2PDF
) -I
$(srcdir) -I
$(texinfodir
) $(srcdir)/elisp.texi
113 .PHONY
: mostlyclean clean distclean maintainer-clean infoclean
115 ## [12] stuff is from two-volume.make.
117 rm -f
*.aux
*.log
*.toc
*.cp
*.cps
*.fn
*.fns
*.ky
*.kys \
118 *.op
*.ops
*.pg
*.pgs
*.tp
*.tps
*.vr
*.vrs
122 rm -f elisp.
dvi elisp.pdf vol
[12].pdf
123 rm -f emacs-lispref-
${version}.
tar*
128 -cd
$(infodir) && rm -f elisp elisp-
[1-9] elisp-
[1-9][0-9]
130 maintainer-clean
: distclean infoclean
132 ## Note this excludes the two-volume stuff.
134 rm -rf emacs-lispref-
${version}
135 mkdir emacs-lispref-
${version}
136 cp
${srcdir}/*.texi
${texinfodir}/texinfo.
tex \
137 ${srcdir}/ChangeLog
* ${srcdir}/README emacs-lispref-
${version}/
138 sed
-e
's/@sr[c]dir@/./' -e
's/\(texinfodir *=\).*/\1 ./' \
139 -e
's/\(infodir *=\).*/\1 ./' -e
's/^\(clean:.*\)/\1 infoclean/' \
140 -e
"s/@ver[s]ion@/${version}/" \
141 ${srcdir}/Makefile.in
> emacs-lispref-
${version}/Makefile
142 tar -cf emacs-lispref-
${version}.
tar emacs-lispref-
${version}
143 rm -rf emacs-lispref-
${version}
145 ### Makefile ends here