admin/notes/tags small update
[emacs.git] / doc / lispref / Makefile.in
blob5094a3f8ab6fc0c34edfef19020e69aa3105e100
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 infodir = $(srcdir)/../../info
28 # Directory with the (customized) texinfo.tex file.
29 texinfodir = $(srcdir)/../misc
30 # Directory with emacsver.texi.
31 emacsdir = $(srcdir)/../emacs
33 MAKEINFO = @MAKEINFO@
34 MAKEINFO_OPTS = --force --enable-encoding -I $(emacsdir) -I $(srcdir)
35 TEXI2DVI = texi2dvi
36 TEXI2PDF = texi2pdf
37 DVIPS = dvips
39 ENVADD = TEXINPUTS="$(srcdir):$(texinfodir):$(emacsdir):$(TEXINPUTS)" \
40 MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
42 # List of all the texinfo files in the manual:
44 srcs = \
45 $(srcdir)/elisp.texi \
46 $(emacsdir)/emacsver.texi \
47 $(srcdir)/abbrevs.texi \
48 $(srcdir)/advice.texi \
49 $(srcdir)/anti.texi \
50 $(srcdir)/back.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 \
61 $(srcdir)/eval.texi \
62 $(srcdir)/files.texi \
63 $(srcdir)/frames.texi \
64 $(srcdir)/functions.texi \
65 $(srcdir)/hash.texi \
66 $(srcdir)/help.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 \
74 $(srcdir)/maps.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 \
81 $(srcdir)/os.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 \
91 $(srcdir)/text.texi \
92 $(srcdir)/tips.texi \
93 $(srcdir)/variables.texi \
94 $(srcdir)/windows.texi \
95 $(srcdir)/index.texi \
96 $(srcdir)/gpl.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
104 dvi: elisp.dvi
105 html: elisp.html
106 pdf: elisp.pdf
107 ps: elisp.ps
109 $(infodir)/elisp: $(srcs)
110 $(mkinfodir)
111 $(MAKEINFO) $(MAKEINFO_OPTS) -o $@ $<
113 elisp.dvi: $(srcs)
114 $(ENVADD) $(TEXI2DVI) $<
116 elisp.html: $(srcs)
117 $(MAKEINFO) $(MAKEINFO_OPTS) --html -o $@ $<
119 elisp.ps: elisp.dvi
120 $(DVIPS) -o $@ $<
122 elisp.pdf: $(srcs)
123 $(ENVADD) $(TEXI2PDF) $<
125 .PHONY: mostlyclean clean distclean maintainer-clean infoclean
127 ## [12] stuff is from two-volume.make.
128 mostlyclean:
129 rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \
130 *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs
131 rm -f elisp[12]*
133 clean: mostlyclean
134 rm -f elisp.dvi elisp.pdf elisp.ps vol[12].pdf
135 rm -rf elisp.html
136 rm -f emacs-lispref-${version}.tar*
138 distclean: clean
140 infoclean:
141 -cd $(infodir) && rm -f elisp elisp-[1-9] elisp-[1-9][0-9]
143 maintainer-clean: distclean infoclean
145 .PHONY: dist
147 ## Note this excludes the two-volume stuff.
148 dist:
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