1 # Makefile for the GNU Emacs Lisp Reference Manual.
3 # Copyright (C) 1990-1996, 1998-2013 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 \
97 $(srcdir)/threads.texi \
99 $(srcdir)/variables.texi \
100 $(srcdir)/windows.texi \
101 $(srcdir)/index.texi \
103 $(srcdir)/doclicense.texi
105 mkinfodir
= @
${MKDIR_P} ${buildinfodir}
107 .PHONY
: info dvi pdf ps
109 info: $(buildinfodir
)/elisp
$(INFO_EXT
)
115 ## Note: "<" is not portable in ordinary make rules.
116 $(buildinfodir
)/elisp
$(INFO_EXT
): $(srcs
)
118 $(MAKEINFO
) $(MAKEINFO_OPTS
) $(INFO_OPTS
) -o
$@
$(srcdir)/elisp.texi
121 $(ENVADD
) $(TEXI2DVI
) $(srcdir)/elisp.texi
124 $(MAKEINFO
) $(MAKEINFO_OPTS
) --html
-o
$@
$(srcdir)/elisp.texi
127 $(DVIPS
) -o
$@ elisp.
dvi
130 $(ENVADD
) $(TEXI2PDF
) $(srcdir)/elisp.texi
132 .PHONY
: mostlyclean clean distclean maintainer-clean infoclean
134 ## [12] stuff is from two-volume.make.
136 rm -f
*.aux
*.log
*.toc
*.cp
*.cps
*.fn
*.fns
*.ky
*.kys \
137 *.op
*.ops
*.pg
*.pgs
*.tp
*.tps
*.vr
*.vrs
138 rm -f elisp
[12]* vol
[12].tmp
141 rm -f elisp.
dvi elisp.pdf elisp.ps
142 rm -f vol
[12].
dvi vol
[12].pdf vol
[12].ps
144 rm -f emacs-lispref-
${version}.
tar*
149 -cd
$(buildinfodir
) && rm -f elisp
$(INFO_EXT
) elisp
$(INFO_EXT
)-[1-9] elisp
$(INFO_EXT
)-[1-9][0-9]
151 maintainer-clean
: distclean infoclean
155 ## Note this excludes the two-volume stuff.
157 rm -rf emacs-lispref-
${version}
158 mkdir emacs-lispref-
${version}
159 cp
${srcdir}/*.texi
${texinfodir}/texinfo.
tex \
160 $(emacsdir
)/emacsver.texi
${srcdir}/ChangeLog
* \
161 ${srcdir}/README emacs-lispref-
${version}/
162 sed
-e
's/@sr[c]dir@/./' -e
's/^\(texinfodir *=\).*/\1 ./' \
163 -e
's/^\(emacsdir *=\).*/\1 ./' \
164 -e
's/^\(buildinfodir *=\).*/\1 ./' \
165 -e
's/^\(clean:.*\)/\1 infoclean/' \
166 -e
"s/@ver[s]ion@/${version}/" \
167 ${srcdir}/Makefile.in
> emacs-lispref-
${version}/Makefile
168 tar -cf emacs-lispref-
${version}.
tar emacs-lispref-
${version}
169 rm -rf emacs-lispref-
${version}
171 ### Makefile ends here