Switch to recommended form of GPLv3 permissions notice.
[bpt/emacs.git] / doc / lispref / Makefile.in
CommitLineData
b8d4c8d0
GM
1# Makefile for the GNU Emacs Lisp Reference Manual.
2
3# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000,
57ebf0be
GM
4# 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5# Free Software Foundation, Inc.
b8d4c8d0
GM
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, or (at your option)
12# 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; see the file COPYING. If not, write to
21# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22# Boston, MA 02110-1301, USA.
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
d374a422
GM
30infodir = ../../info
31usermanualdir = $(srcdir)/../emacs
32miscmanualdir = $(srcdir)/../misc
b8d4c8d0
GM
33
34TEXI2DVI = texi2dvi
35SHELL = /bin/sh
36INSTALL_INFO = install-info
37MAKEINFO = makeinfo --force
38
39# The name of the manual:
40VERSION=2.9
41manual = elisp-manual-21-$(VERSION)
42
43# List of all the texinfo files in the manual:
44
45srcs = \
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
99
100.PHONY: clean
101
102# The info file is named `elisp'.
103info: $(infodir)/elisp
104
105$(infodir)/elisp: $(srcs)
106 cd $(srcdir); $(MAKEINFO) -I. -I$(infodir) elisp.texi -o $(infodir)/elisp
107
108elisp.dvi: $(srcs)
109 $(TEXI2DVI) -I $(srcdir) -I $(usermanualdir) $(srcdir)/elisp.texi
110
111# This is for use in a separate distro of the Emacs Lisp manual.
112install: elisp
113 $(srcdir)/mkinstalldirs $(infodir)
114 cp elisp elisp-[1-9] elisp-[1-9][0-9] $(infodir)
115 ${INSTALL_INFO} --info-dir=${infodir} ${infodir}/elisp
116
117# This is for use in a separate distro of the Emacs Lisp manual.
118elisp: $(srcs)
119 $(MAKEINFO) -I. -I$(srcdir) $(srcdir)/elisp.texi
120
121clean:
122 rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \
123 *.vr *.vrs *.pg *.pgs *.ky *.kys
124 rm -f make.out core
125
126distclean: clean
127
128maintainer-clean: clean
129 rm -f elisp.dvi elisp.oaux
130 cd $(infodir); rm -f elisp elisp-[1-9] elisp-[1-9][0-9]
131
132dist: $(infodir)/elisp elisp.dvi
133 -rm -rf temp
134 -mkdir temp
135 -mkdir temp/$(manual)
136 -ln $(srcdir)/README $(srcdir)/configure.in $(srcdir)/configure \
137 $(srcdir)/Makefile.in $(srcs) \
d374a422 138 $(miscmanualdir)/texinfo.tex \
b8d4c8d0
GM
139 elisp.dvi elisp.aux elisp.??s \
140 $(infodir)/elisp $(infodir)/elisp-[1-9] $(infodir)/elisp-[1-9][0-9] \
141 temp/$(manual)
142 -(cd temp/$(manual); rm -f mkinstalldirs)
143 cp $(srcdir)/mkinstalldirs temp/$(manual)
144 (cd temp/$(manual); rm -f *~)
145 (cd temp; tar chf - $(manual)) | gzip > $(manual).tar.gz
146 -rm -rf temp