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 buildinfodir
= $(srcdir)/..
/..
/info
28 # Directory with the (customized) texinfo.tex file.
29 texinfodir
= $(srcdir)/..
/misc
30 # Directory with emacsver.texi.
31 emacsdir
= $(srcdir)/..
/emacs
36 # Options used only when making info output.
40 MAKEINFO_OPTS
= --force --enable-encoding
-I
$(emacsdir
) -I
$(srcdir)
45 ENVADD
= TEXINPUTS
="$(srcdir):$(texinfodir):$(emacsdir):$(TEXINPUTS)" \
46 MAKEINFO
="$(MAKEINFO) $(MAKEINFO_OPTS)"
48 # List of all the texinfo files in the manual:
51 $(srcdir)/elisp.texi \
52 $(emacsdir
)/emacsver.texi \
53 $(srcdir)/abbrevs.texi \
54 $(srcdir)/advice.texi \
56 $(srcdir)/backups.texi \
57 $(srcdir)/buffers.texi \
58 $(srcdir)/commands.texi \
59 $(srcdir)/compile.texi \
60 $(srcdir)/control.texi \
61 $(srcdir)/customize.texi \
62 $(srcdir)/debugging.texi \
63 $(srcdir)/display.texi \
64 $(srcdir)/edebug.texi \
65 $(srcdir)/errors.texi \
67 $(srcdir)/files.texi \
68 $(srcdir)/frames.texi \
69 $(srcdir)/functions.texi \
72 $(srcdir)/hooks.texi \
73 $(srcdir)/internals.texi \
74 $(srcdir)/intro.texi \
75 $(srcdir)/keymaps.texi \
76 $(srcdir)/lists.texi \
77 $(srcdir)/loading.texi \
78 $(srcdir)/macros.texi \
80 $(srcdir)/markers.texi \
81 $(srcdir)/minibuf.texi \
82 $(srcdir)/modes.texi \
83 $(srcdir)/nonascii.texi \
84 $(srcdir)/numbers.texi \
85 $(srcdir)/objects.texi \
87 $(srcdir)/package.texi \
88 $(srcdir)/positions.texi \
89 $(srcdir)/processes.texi \
90 $(srcdir)/searching.texi \
91 $(srcdir)/sequences.texi \
92 $(srcdir)/streams.texi \
93 $(srcdir)/strings.texi \
94 $(srcdir)/symbols.texi \
95 $(srcdir)/syntax.texi \
98 $(srcdir)/variables.texi \
99 $(srcdir)/windows.texi \
100 $(srcdir)/index.texi \
102 $(srcdir)/doclicense.texi
104 mkinfodir
= @
${MKDIR_P} ${buildinfodir}
106 .PHONY
: info dvi pdf ps
108 info: $(buildinfodir
)/elisp
$(INFO_EXT
)
114 ## Note: "<" is not portable in ordinary make rules.
115 $(buildinfodir
)/elisp
$(INFO_EXT
): $(srcs
)
117 $(MAKEINFO
) $(MAKEINFO_OPTS
) $(INFO_OPTS
) -o
$@
$(srcdir)/elisp.texi
120 $(ENVADD
) $(TEXI2DVI
) $(srcdir)/elisp.texi
123 $(MAKEINFO
) $(MAKEINFO_OPTS
) --html
-o
$@
$(srcdir)/elisp.texi
126 $(DVIPS
) -o
$@ elisp.
dvi
129 $(ENVADD
) $(TEXI2PDF
) $(srcdir)/elisp.texi
131 .PHONY
: mostlyclean clean distclean maintainer-clean infoclean
133 ## [12] stuff is from two-volume.make.
135 rm -f
*.aux
*.log
*.toc
*.cp
*.cps
*.fn
*.fns
*.ky
*.kys \
136 *.op
*.ops
*.pg
*.pgs
*.tp
*.tps
*.vr
*.vrs
137 rm -f elisp
[12]* vol
[12].tmp
140 rm -f elisp.
dvi elisp.pdf elisp.ps
141 rm -f vol
[12].
dvi vol
[12].pdf vol
[12].ps
143 rm -f emacs-lispref-
${version}.
tar*
148 -cd
$(buildinfodir
) && rm -f elisp
$(INFO_EXT
) elisp
$(INFO_EXT
)-[1-9] elisp
$(INFO_EXT
)-[1-9][0-9]
150 maintainer-clean
: distclean infoclean
154 ## Note this excludes the two-volume stuff.
156 rm -rf emacs-lispref-
${version}
157 mkdir emacs-lispref-
${version}
158 cp
${srcdir}/*.texi
${texinfodir}/texinfo.
tex \
159 $(emacsdir
)/emacsver.texi
${srcdir}/ChangeLog
* \
160 ${srcdir}/README emacs-lispref-
${version}/
161 sed
-e
's/@sr[c]dir@/./' -e
's/^\(texinfodir *=\).*/\1 ./' \
162 -e
's/^\(emacsdir *=\).*/\1 ./' \
163 -e
's/^\(buildinfodir *=\).*/\1 ./' \
164 -e
's/^\(clean:.*\)/\1 infoclean/' \
165 -e
"s/@ver[s]ion@/${version}/" \
166 ${srcdir}/Makefile.in
> emacs-lispref-
${version}/Makefile
167 tar -cf emacs-lispref-
${version}.
tar emacs-lispref-
${version}
168 rm -rf emacs-lispref-
${version}
170 ### Makefile ends here