Switch license to GPLv3 or later.
[bpt/emacs.git] / lispref / Makefile.in
CommitLineData
306ba736 1# Makefile for the GNU Emacs Lisp Reference Manual.
61760ae8 2
651f374c 3# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000,
4e6835db 4# 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
61760ae8
EZ
5
6# This file is part of GNU Emacs.
7
8# GNU Emacs is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
4a9f99bd 10# the Free Software Foundation; either version 3, or (at your option)
61760ae8
EZ
11# any later version.
12
13# GNU Emacs is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17
18# You should have received a copy of the GNU General Public License
19# along with GNU Emacs; see the file COPYING. If not, write to
364c38d3
LK
20# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21# Boston, MA 02110-1301, USA.
73804d4b 22
306ba736 23# Standard configure variables.
306ba736 24srcdir = @srcdir@
73804d4b 25
61760ae8
EZ
26# Tell make where to find source files; this is needed for the makefiles.
27VPATH=@srcdir@
28
b4e4dc3c 29infodir = ../info
3e46b34c 30usermanualdir = $(srcdir)/../man
61760ae8 31
c3cda320
AS
32TEXI2DVI = texi2dvi
33SHELL = /bin/sh
26a781f6 34INSTALL_INFO = install-info
4a8b387f 35MAKEINFO = makeinfo --force
73804d4b
RS
36
37# The name of the manual:
231ac53b 38VERSION=2.9
c7f125f2 39manual = elisp-manual-21-$(VERSION)
73804d4b 40
73804d4b
RS
41# List of all the texinfo files in the manual:
42
306ba736
GM
43srcs = \
44 $(srcdir)/abbrevs.texi \
45 $(srcdir)/advice.texi \
46 $(srcdir)/anti.texi \
47 $(srcdir)/back.texi \
48 $(srcdir)/backups.texi \
49 $(srcdir)/buffers.texi \
306ba736
GM
50 $(srcdir)/commands.texi \
51 $(srcdir)/compile.texi \
52 $(srcdir)/control.texi \
53 $(srcdir)/customize.texi \
54 $(srcdir)/debugging.texi \
55 $(srcdir)/display.texi \
56 $(srcdir)/edebug.texi \
57 $(srcdir)/elisp.texi \
58 $(srcdir)/errors.texi \
59 $(srcdir)/eval.texi \
60 $(srcdir)/files.texi \
61 $(srcdir)/frames.texi \
62 $(srcdir)/functions.texi \
63 $(srcdir)/hash.texi \
64 $(srcdir)/help.texi \
65 $(srcdir)/hooks.texi \
66 $(srcdir)/internals.texi \
67 $(srcdir)/intro.texi \
68 $(srcdir)/keymaps.texi \
69 $(srcdir)/lists.texi \
70 $(srcdir)/loading.texi \
71 $(srcdir)/locals.texi \
72 $(srcdir)/macros.texi \
73 $(srcdir)/maps.texi \
74 $(srcdir)/markers.texi \
75 $(srcdir)/minibuf.texi \
76 $(srcdir)/modes.texi \
77 $(srcdir)/nonascii.texi \
78 $(srcdir)/numbers.texi \
79 $(srcdir)/objects.texi \
80 $(srcdir)/os.texi \
81 $(srcdir)/positions.texi \
82 $(srcdir)/processes.texi \
83 $(srcdir)/searching.texi \
84 $(srcdir)/sequences.texi \
85 $(srcdir)/streams.texi \
86 $(srcdir)/strings.texi \
87 $(srcdir)/symbols.texi \
88 $(srcdir)/syntax.texi \
89 $(srcdir)/text.texi \
90 $(srcdir)/tips.texi \
91 $(srcdir)/variables.texi \
92 $(srcdir)/windows.texi \
c3cda320 93 $(srcdir)/index.texi \
e7fd29af
GM
94 $(srcdir)/gpl.texi \
95 $(srcdir)/doclicense.texi
96
306ba736
GM
97
98.PHONY: clean
73804d4b 99
52172e23 100# The info file is named `elisp'.
707e9f16 101info: $(infodir)/elisp
52172e23 102
c3cda320 103$(infodir)/elisp: $(srcs)
b4e4dc3c 104 cd $(srcdir); $(MAKEINFO) -I. -I$(infodir) elisp.texi -o $(infodir)/elisp
52172e23 105
c3cda320 106elisp.dvi: $(srcs)
3e46b34c 107 $(TEXI2DVI) -I $(srcdir) -I $(usermanualdir) $(srcdir)/elisp.texi
73804d4b 108
432fc65c 109# This is for use in a separate distro of the Emacs Lisp manual.
52172e23 110install: elisp
306ba736 111 $(srcdir)/mkinstalldirs $(infodir)
bc214b06 112 cp elisp elisp-[1-9] elisp-[1-9][0-9] $(infodir)
722d9ee6 113 ${INSTALL_INFO} --info-dir=${infodir} ${infodir}/elisp
73804d4b 114
432fc65c
RS
115# This is for use in a separate distro of the Emacs Lisp manual.
116elisp: $(srcs)
117 $(MAKEINFO) -I. -I$(srcdir) $(srcdir)/elisp.texi
118
73804d4b
RS
119clean:
120 rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \
121 *.vr *.vrs *.pg *.pgs *.ky *.kys
177c0ea7 122 rm -f make.out core
73804d4b 123
7a1494ce
EZ
124distclean: clean
125
2fb9d641 126maintainer-clean: clean
94633ca6 127 rm -f elisp.dvi elisp.oaux
342c350f 128 cd $(infodir); rm -f elisp elisp-[1-9] elisp-[1-9][0-9]
79069c68 129
432fc65c 130dist: $(infodir)/elisp elisp.dvi
0e9b2517 131 -rm -rf temp
73804d4b
RS
132 -mkdir temp
133 -mkdir temp/$(manual)
306ba736 134 -ln $(srcdir)/README $(srcdir)/configure.in $(srcdir)/configure \
c3cda320 135 $(srcdir)/Makefile.in $(srcs) \
306ba736 136 $(srcdir)/../man/texinfo.tex \
432fc65c
RS
137 elisp.dvi elisp.aux elisp.??s \
138 $(infodir)/elisp $(infodir)/elisp-[1-9] $(infodir)/elisp-[1-9][0-9] \
153d0a6d 139 temp/$(manual)
0e9b2517 140 -(cd temp/$(manual); rm -f mkinstalldirs)
306ba736 141 cp $(srcdir)/mkinstalldirs temp/$(manual)
73804d4b
RS
142 (cd temp/$(manual); rm -f *~)
143 (cd temp; tar chf - $(manual)) | gzip > $(manual).tar.gz
144 -rm -rf temp