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.
31 # Directory with the (customized) texinfo.tex file.
32 texinfodir
= $(srcdir)/..
/misc
34 MAKEINFO
= makeinfo --force
38 # List of all the texinfo files in the manual:
41 $(srcdir)/abbrevs.texi \
42 $(srcdir)/advice.texi \
45 $(srcdir)/backups.texi \
46 $(srcdir)/buffers.texi \
47 $(srcdir)/commands.texi \
48 $(srcdir)/compile.texi \
49 $(srcdir)/control.texi \
50 $(srcdir)/customize.texi \
51 $(srcdir)/debugging.texi \
52 $(srcdir)/display.texi \
53 $(srcdir)/edebug.texi \
54 $(srcdir)/elisp.texi \
55 $(srcdir)/errors.texi \
57 $(srcdir)/files.texi \
58 $(srcdir)/frames.texi \
59 $(srcdir)/functions.texi \
62 $(srcdir)/hooks.texi \
63 $(srcdir)/internals.texi \
64 $(srcdir)/intro.texi \
65 $(srcdir)/keymaps.texi \
66 $(srcdir)/lists.texi \
67 $(srcdir)/loading.texi \
68 $(srcdir)/locals.texi \
69 $(srcdir)/macros.texi \
71 $(srcdir)/markers.texi \
72 $(srcdir)/minibuf.texi \
73 $(srcdir)/modes.texi \
74 $(srcdir)/nonascii.texi \
75 $(srcdir)/numbers.texi \
76 $(srcdir)/objects.texi \
78 $(srcdir)/positions.texi \
79 $(srcdir)/processes.texi \
80 $(srcdir)/searching.texi \
81 $(srcdir)/sequences.texi \
82 $(srcdir)/streams.texi \
83 $(srcdir)/strings.texi \
84 $(srcdir)/symbols.texi \
85 $(srcdir)/syntax.texi \
88 $(srcdir)/variables.texi \
89 $(srcdir)/windows.texi \
90 $(srcdir)/index.texi \
92 $(srcdir)/doclicense.texi
94 # The info file is named `elisp'.
95 info: $(infodir)/elisp
100 mkdir
$@ ||
test -d
$@
102 $(infodir)/elisp
: $(infodir) $(srcs
)
103 cd
$(srcdir); $(MAKEINFO
) -I.
-I
$(texinfodir
) elisp.texi
-o
$@
106 $(TEXI2DVI
) -I
$(srcdir) -I
$(texinfodir
) $(srcdir)/elisp.texi
109 $(TEXI2PDF
) -I
$(srcdir) -I
$(texinfodir
) $(srcdir)/elisp.texi
111 .PHONY
: mostlyclean clean distclean maintainer-clean infoclean
113 ## [12] stuff is from two-volume.make.
115 rm -f
*.aux
*.log
*.toc
*.cp
*.cps
*.fn
*.fns
*.ky
*.kys \
116 *.op
*.ops
*.pg
*.pgs
*.tp
*.tps
*.vr
*.vrs
120 rm -f elisp.
dvi elisp.pdf vol
[12].pdf
125 -cd
$(infodir) && rm -f elisp elisp-
[1-9] elisp-
[1-9][0-9]
127 maintainer-clean
: distclean infoclean
129 ## Note this excludes the two-volume stuff.
133 cp
${srcdir}/*.texi
${texinfodir}/texinfo.
tex \
134 ${srcdir}/ChangeLog
* ${srcdir}/README lispref
/
135 sed
-e
's/@sr[c]dir@/./' -e
's/\(texinfodir *=\).*/\1 ./' \
136 -e
's/\(infodir *=\).*/\1 ./' -e
's/^\(clean:.*\)/\1 infoclean/' \
137 ${srcdir}/Makefile.in
> lispref
/Makefile
138 tar -cf elisp-texi.
tar lispref
141 ### Makefile ends here