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, 2011
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.
29 infodir = $(srcdir)/..
/..
/info
30 # Directory with the (customized) texinfo.tex file.
31 texinfodir
= $(srcdir)/..
/misc
32 # Directory with emacsver.texi.
33 emacsdir
= $(srcdir)/..
/emacs
36 MAKEINFO_OPTS
= --force -I
$(emacsdir
) -I
$(srcdir)
41 ENVADD
= TEXINPUTS
="$(srcdir):$(texinfodir):$(TEXINPUTS)" \
42 MAKEINFO
="$(MAKEINFO) $(MAKEINFO_OPTS)"
44 # List of all the texinfo files in the manual:
47 $(srcdir)/elisp.texi \
48 $(emacsdir
)/emacsver.texi \
49 $(srcdir)/abbrevs.texi \
50 $(srcdir)/advice.texi \
53 $(srcdir)/backups.texi \
54 $(srcdir)/buffers.texi \
55 $(srcdir)/commands.texi \
56 $(srcdir)/compile.texi \
57 $(srcdir)/control.texi \
58 $(srcdir)/customize.texi \
59 $(srcdir)/debugging.texi \
60 $(srcdir)/display.texi \
61 $(srcdir)/edebug.texi \
62 $(srcdir)/errors.texi \
64 $(srcdir)/files.texi \
65 $(srcdir)/frames.texi \
66 $(srcdir)/functions.texi \
69 $(srcdir)/hooks.texi \
70 $(srcdir)/internals.texi \
71 $(srcdir)/intro.texi \
72 $(srcdir)/keymaps.texi \
73 $(srcdir)/lists.texi \
74 $(srcdir)/loading.texi \
75 $(srcdir)/locals.texi \
76 $(srcdir)/macros.texi \
78 $(srcdir)/markers.texi \
79 $(srcdir)/minibuf.texi \
80 $(srcdir)/modes.texi \
81 $(srcdir)/nonascii.texi \
82 $(srcdir)/numbers.texi \
83 $(srcdir)/objects.texi \
85 $(srcdir)/positions.texi \
86 $(srcdir)/processes.texi \
87 $(srcdir)/searching.texi \
88 $(srcdir)/sequences.texi \
89 $(srcdir)/streams.texi \
90 $(srcdir)/strings.texi \
91 $(srcdir)/symbols.texi \
92 $(srcdir)/syntax.texi \
95 $(srcdir)/variables.texi \
96 $(srcdir)/windows.texi \
97 $(srcdir)/index.texi \
99 $(srcdir)/doclicense.texi
101 mkinfodir
= @
test -d
${infodir} || mkdir
${infodir} ||
test -d
${infodir}
103 .PHONY
: info dvi pdf ps
105 info: $(infodir)/elisp
111 $(infodir)/elisp
: $(srcs
)
113 $(MAKEINFO
) $(MAKEINFO_OPTS
) -o
$@
$<
116 $(ENVADD
) $(TEXI2DVI
) $<
119 $(MAKEINFO
) $(MAKEINFO_OPTS
) --html
-o
$@
$<
125 $(ENVADD
) $(TEXI2PDF
) $<
127 .PHONY
: mostlyclean clean distclean maintainer-clean infoclean
129 ## [12] stuff is from two-volume.make.
131 rm -f
*.aux
*.log
*.toc
*.cp
*.cps
*.fn
*.fns
*.ky
*.kys \
132 *.op
*.ops
*.pg
*.pgs
*.tp
*.tps
*.vr
*.vrs
136 rm -f elisp.
dvi elisp.pdf elisp.ps vol
[12].pdf
138 rm -f emacs-lispref-
${version}.
tar*
143 -cd
$(infodir) && rm -f elisp elisp-
[1-9] elisp-
[1-9][0-9]
145 maintainer-clean
: distclean infoclean
149 ## Note this excludes the two-volume stuff.
151 rm -rf emacs-lispref-
${version}
152 mkdir emacs-lispref-
${version}
153 cp
${srcdir}/*.texi
${texinfodir}/texinfo.
tex \
154 $(emacsdir
)/emacsver.texi
${srcdir}/ChangeLog
* \
155 ${srcdir}/README emacs-lispref-
${version}/
156 sed
-e
's/@sr[c]dir@/./' -e
's/^\(texinfodir *=\).*/\1 ./' \
157 -e
's/^\(emacsdir *=\).*/\1 ./' \
158 -e
's/^\(infodir *=\).*/\1 ./' -e
's/^\(clean:.*\)/\1 infoclean/' \
159 -e
"s/@ver[s]ion@/${version}/" \
160 ${srcdir}/Makefile.in
> emacs-lispref-
${version}/Makefile
161 tar -cf emacs-lispref-
${version}.
tar emacs-lispref-
${version}
162 rm -rf emacs-lispref-
${version}
164 ### Makefile ends here