1 # Makefile for the GNU Emacs Lisp Reference Manual.
3 # Copyright (C) 1990-1996, 1998-2012 Free Software Foundation, Inc.
5 # This file is part of GNU Emacs.
7 # GNU Emacs is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
12 # GNU Emacs is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22 # Standard configure variables.
27 infodir = $(srcdir)/..
/..
/info
28 # Directory with the (customized) texinfo.tex file.
29 texinfodir
= $(srcdir)/..
/misc
30 # Directory with emacsver.texi.
31 emacsdir
= $(srcdir)/..
/emacs
34 MAKEINFO_OPTS
= --force --enable-encoding
-I
$(emacsdir
) -I
$(srcdir)
39 ENVADD
= TEXINPUTS
="$(srcdir):$(texinfodir):$(emacsdir):$(TEXINPUTS)" \
40 MAKEINFO
="$(MAKEINFO) $(MAKEINFO_OPTS)"
42 # List of all the texinfo files in the manual:
45 $(srcdir)/elisp.texi \
46 $(emacsdir
)/emacsver.texi \
47 $(srcdir)/abbrevs.texi \
48 $(srcdir)/advice.texi \
51 $(srcdir)/backups.texi \
52 $(srcdir)/buffers.texi \
53 $(srcdir)/commands.texi \
54 $(srcdir)/compile.texi \
55 $(srcdir)/control.texi \
56 $(srcdir)/customize.texi \
57 $(srcdir)/debugging.texi \
58 $(srcdir)/display.texi \
59 $(srcdir)/edebug.texi \
60 $(srcdir)/errors.texi \
62 $(srcdir)/files.texi \
63 $(srcdir)/frames.texi \
64 $(srcdir)/functions.texi \
67 $(srcdir)/hooks.texi \
68 $(srcdir)/internals.texi \
69 $(srcdir)/intro.texi \
70 $(srcdir)/keymaps.texi \
71 $(srcdir)/lists.texi \
72 $(srcdir)/loading.texi \
73 $(srcdir)/macros.texi \
75 $(srcdir)/markers.texi \
76 $(srcdir)/minibuf.texi \
77 $(srcdir)/modes.texi \
78 $(srcdir)/nonascii.texi \
79 $(srcdir)/numbers.texi \
80 $(srcdir)/objects.texi \
82 $(srcdir)/package.texi \
83 $(srcdir)/positions.texi \
84 $(srcdir)/processes.texi \
85 $(srcdir)/searching.texi \
86 $(srcdir)/sequences.texi \
87 $(srcdir)/streams.texi \
88 $(srcdir)/strings.texi \
89 $(srcdir)/symbols.texi \
90 $(srcdir)/syntax.texi \
93 $(srcdir)/variables.texi \
94 $(srcdir)/windows.texi \
95 $(srcdir)/index.texi \
97 $(srcdir)/doclicense.texi
99 mkinfodir
= @
test -d
${infodir} || mkdir
${infodir} ||
test -d
${infodir}
101 .PHONY
: info dvi pdf ps
103 info: $(infodir)/elisp
109 $(infodir)/elisp
: $(srcs
)
111 $(MAKEINFO
) $(MAKEINFO_OPTS
) -o
$@
$<
114 $(ENVADD
) $(TEXI2DVI
) $<
117 $(MAKEINFO
) $(MAKEINFO_OPTS
) --html
-o
$@
$<
123 $(ENVADD
) $(TEXI2PDF
) $<
125 .PHONY
: mostlyclean clean distclean maintainer-clean infoclean
127 ## [12] stuff is from two-volume.make.
129 rm -f
*.aux
*.log
*.toc
*.cp
*.cps
*.fn
*.fns
*.ky
*.kys \
130 *.op
*.ops
*.pg
*.pgs
*.tp
*.tps
*.vr
*.vrs
134 rm -f elisp.
dvi elisp.pdf elisp.ps vol
[12].pdf
136 rm -f emacs-lispref-
${version}.
tar*
141 -cd
$(infodir) && rm -f elisp elisp-
[1-9] elisp-
[1-9][0-9]
143 maintainer-clean
: distclean infoclean
147 ## Note this excludes the two-volume stuff.
149 rm -rf emacs-lispref-
${version}
150 mkdir emacs-lispref-
${version}
151 cp
${srcdir}/*.texi
${texinfodir}/texinfo.
tex \
152 $(emacsdir
)/emacsver.texi
${srcdir}/ChangeLog
* \
153 ${srcdir}/README emacs-lispref-
${version}/
154 sed
-e
's/@sr[c]dir@/./' -e
's/^\(texinfodir *=\).*/\1 ./' \
155 -e
's/^\(emacsdir *=\).*/\1 ./' \
156 -e
's/^\(infodir *=\).*/\1 ./' -e
's/^\(clean:.*\)/\1 infoclean/' \
157 -e
"s/@ver[s]ion@/${version}/" \
158 ${srcdir}/Makefile.in
> emacs-lispref-
${version}/Makefile
159 tar -cf emacs-lispref-
${version}.
tar emacs-lispref-
${version}
160 rm -rf emacs-lispref-
${version}
162 ### Makefile ends here