Quieten emacs-devel.
[bpt/emacs.git] / doc / lispref / Makefile.in
... / ...
CommitLineData
1# Makefile for the GNU Emacs Lisp Reference Manual.
2
3# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000,
4# 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
5# Free Software Foundation, Inc.
6
7# This file is part of GNU Emacs.
8
9# GNU Emacs is free software: you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation, either version 3 of the License, or
12# (at your option) any later version.
13
14# GNU Emacs is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
18
19# You should have received a copy of the GNU General Public License
20# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21
22SHELL = /bin/sh
23
24# Standard configure variables.
25srcdir = @srcdir@
26
27# Tell make where to find source files; this is needed for the makefiles.
28VPATH=@srcdir@
29
30version=@version@
31
32infodir = ../../info
33# Directory with the (customized) texinfo.tex file.
34texinfodir = $(srcdir)/../misc
35# Directory with emacsver.texi.
36emacsdir = $(srcdir)/../emacs
37
38MAKEINFO = makeinfo --force -I $(emacsdir)
39TEXI2DVI = texi2dvi
40TEXI2PDF = texi2pdf
41
42# List of all the texinfo files in the manual:
43
44srcs = \
45 $(emacsdir)/emacsver.texi \
46 $(srcdir)/abbrevs.texi \
47 $(srcdir)/advice.texi \
48 $(srcdir)/anti.texi \
49 $(srcdir)/back.texi \
50 $(srcdir)/backups.texi \
51 $(srcdir)/buffers.texi \
52 $(srcdir)/commands.texi \
53 $(srcdir)/compile.texi \
54 $(srcdir)/control.texi \
55 $(srcdir)/customize.texi \
56 $(srcdir)/debugging.texi \
57 $(srcdir)/display.texi \
58 $(srcdir)/edebug.texi \
59 $(srcdir)/elisp.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)/locals.texi \
74 $(srcdir)/macros.texi \
75 $(srcdir)/maps.texi \
76 $(srcdir)/markers.texi \
77 $(srcdir)/minibuf.texi \
78 $(srcdir)/modes.texi \
79 $(srcdir)/nonascii.texi \
80 $(srcdir)/numbers.texi \
81 $(srcdir)/objects.texi \
82 $(srcdir)/os.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
98
99mkinfodir = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir}
100
101.PHONY: info dvi pdf
102
103# The info file is named `elisp'.
104info: $(infodir)/elisp
105dvi: elisp.dvi
106pdf: elisp.pdf
107
108$(infodir)/elisp: $(srcs)
109 $(mkinfodir)
110 cd $(srcdir); $(MAKEINFO) -I. -I$(texinfodir) elisp.texi -o $@
111
112elisp.dvi: $(srcs)
113 $(TEXI2DVI) -I $(srcdir) -I $(texinfodir) $(srcdir)/elisp.texi
114
115elisp.pdf: $(srcs)
116 $(TEXI2PDF) -I $(srcdir) -I $(texinfodir) $(srcdir)/elisp.texi
117
118.PHONY: mostlyclean clean distclean maintainer-clean infoclean
119
120## [12] stuff is from two-volume.make.
121mostlyclean:
122 rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \
123 *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs
124 rm -f elisp[12]*
125
126clean: mostlyclean
127 rm -f elisp.dvi elisp.pdf vol[12].pdf
128 rm -f emacs-lispref-${version}.tar*
129
130distclean: clean
131
132infoclean:
133 -cd $(srcdir) && cd $(infodir) && rm -f elisp elisp-[1-9] elisp-[1-9][0-9]
134
135maintainer-clean: distclean infoclean
136
137.PHONY: dist
138
139## Note this excludes the two-volume stuff.
140dist:
141 rm -rf emacs-lispref-${version}
142 mkdir emacs-lispref-${version}
143 cp ${srcdir}/*.texi ${texinfodir}/texinfo.tex \
144 ${srcdir}/ChangeLog* ${srcdir}/README emacs-lispref-${version}/
145 sed -e 's/@sr[c]dir@/./' -e 's/\(texinfodir *=\).*/\1 ./' \
146 -e 's/\(infodir *=\).*/\1 ./' -e 's/^\(clean:.*\)/\1 infoclean/' \
147 -e "s/@ver[s]ion@/${version}/" \
148 ${srcdir}/Makefile.in > emacs-lispref-${version}/Makefile
149 sed -e "s/@ver[s]ion@/${version}/" \
150 ${emacsdir}/emacsver.texi.in > emacs-lispref-${version}/emacsver.texi
151 tar -cf emacs-lispref-${version}.tar emacs-lispref-${version}
152 rm -rf emacs-lispref-${version}
153
154### Makefile ends here