Load term/internal from loadup.el.
[emacs.git] / doc / lispref / Makefile.in
blob32a241e2a2dc09c74f00290b166130896d0feef5
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/>.
20 SHELL = /bin/sh
22 # Standard configure variables.
23 srcdir = @srcdir@
25 version=@version@
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
33 MKDIR_P = @MKDIR_P@
35 INFO_EXT=@INFO_EXT@
36 # Options used only when making info output.
37 INFO_OPTS=@INFO_OPTS@
39 MAKEINFO = @MAKEINFO@
40 MAKEINFO_OPTS = --force --enable-encoding -I $(emacsdir) -I $(srcdir)
41 TEXI2DVI = texi2dvi
42 TEXI2PDF = texi2pdf
43 DVIPS = dvips
45 ENVADD = TEXINPUTS="$(srcdir):$(texinfodir):$(emacsdir):$(TEXINPUTS)" \
46 MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
48 # List of all the texinfo files in the manual:
50 srcs = \
51 $(srcdir)/elisp.texi \
52 $(emacsdir)/emacsver.texi \
53 $(srcdir)/abbrevs.texi \
54 $(srcdir)/advice.texi \
55 $(srcdir)/anti.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 \
66 $(srcdir)/eval.texi \
67 $(srcdir)/files.texi \
68 $(srcdir)/frames.texi \
69 $(srcdir)/functions.texi \
70 $(srcdir)/hash.texi \
71 $(srcdir)/help.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 \
79 $(srcdir)/maps.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 \
86 $(srcdir)/os.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 \
96 $(srcdir)/text.texi \
97 $(srcdir)/tips.texi \
98 $(srcdir)/variables.texi \
99 $(srcdir)/windows.texi \
100 $(srcdir)/index.texi \
101 $(srcdir)/gpl.texi \
102 $(srcdir)/doclicense.texi
104 mkinfodir = @${MKDIR_P} ${buildinfodir}
106 .PHONY: info dvi pdf ps
108 info: $(buildinfodir)/elisp$(INFO_EXT)
109 dvi: elisp.dvi
110 html: elisp.html
111 pdf: elisp.pdf
112 ps: elisp.ps
114 ## Note: "<" is not portable in ordinary make rules.
115 $(buildinfodir)/elisp$(INFO_EXT): $(srcs)
116 $(mkinfodir)
117 $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ $(srcdir)/elisp.texi
119 elisp.dvi: $(srcs)
120 $(ENVADD) $(TEXI2DVI) $(srcdir)/elisp.texi
122 elisp.html: $(srcs)
123 $(MAKEINFO) $(MAKEINFO_OPTS) --html -o $@ $(srcdir)/elisp.texi
125 elisp.ps: elisp.dvi
126 $(DVIPS) -o $@ elisp.dvi
128 elisp.pdf: $(srcs)
129 $(ENVADD) $(TEXI2PDF) $(srcdir)/elisp.texi
131 .PHONY: mostlyclean clean distclean maintainer-clean infoclean
133 ## [12] stuff is from two-volume.make.
134 mostlyclean:
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
139 clean: mostlyclean
140 rm -f elisp.dvi elisp.pdf elisp.ps
141 rm -f vol[12].dvi vol[12].pdf vol[12].ps
142 rm -rf elisp.html
143 rm -f emacs-lispref-${version}.tar*
145 distclean: clean
147 infoclean:
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
152 .PHONY: dist
154 ## Note this excludes the two-volume stuff.
155 dist:
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