1 # Makefile for the GNU Emacs Lisp Reference Manual.
3 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000,
4 # 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
6 # This file is part of GNU Emacs.
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
10 # the Free Software Foundation; either version 3, or (at your option)
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.
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
20 # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 # Boston, MA 02110-1301, USA.
23 # Standard configure variables.
26 # Tell make where to find source files; this is needed for the makefiles.
30 usermanualdir
= $(srcdir)/..
/emacs
31 miscmanualdir
= $(srcdir)/..
/misc
35 INSTALL_INFO
= install-info
36 MAKEINFO
= makeinfo --force
38 # The name of the manual:
40 manual
= elisp-manual-21-
$(VERSION
)
42 # List of all the texinfo files in the manual:
45 $(srcdir)/abbrevs.texi \
46 $(srcdir)/advice.texi \
49 $(srcdir)/backups.texi \
50 $(srcdir)/buffers.texi \
51 $(srcdir)/commands.texi \
52 $(srcdir)/compile.texi \
53 $(srcdir)/control.texi \
54 $(srcdir)/customize.texi \
55 $(srcdir)/debugging.texi \
56 $(srcdir)/display.texi \
57 $(srcdir)/edebug.texi \
58 $(srcdir)/elisp.texi \
59 $(srcdir)/errors.texi \
61 $(srcdir)/files.texi \
62 $(srcdir)/frames.texi \
63 $(srcdir)/functions.texi \
66 $(srcdir)/hooks.texi \
67 $(srcdir)/internals.texi \
68 $(srcdir)/intro.texi \
69 $(srcdir)/keymaps.texi \
70 $(srcdir)/lists.texi \
71 $(srcdir)/loading.texi \
72 $(srcdir)/locals.texi \
73 $(srcdir)/macros.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 \
82 $(srcdir)/positions.texi \
83 $(srcdir)/processes.texi \
84 $(srcdir)/searching.texi \
85 $(srcdir)/sequences.texi \
86 $(srcdir)/streams.texi \
87 $(srcdir)/strings.texi \
88 $(srcdir)/symbols.texi \
89 $(srcdir)/syntax.texi \
92 $(srcdir)/variables.texi \
93 $(srcdir)/windows.texi \
94 $(srcdir)/index.texi \
96 $(srcdir)/doclicense.texi
101 # The info file is named `elisp'.
102 info: $(infodir)/elisp
104 $(infodir)/elisp
: $(srcs
)
105 cd
$(srcdir); $(MAKEINFO
) -I.
-I
$(infodir) elisp.texi
-o
$(infodir)/elisp
108 $(TEXI2DVI
) -I
$(srcdir) -I
$(usermanualdir
) $(srcdir)/elisp.texi
110 # This is for use in a separate distro of the Emacs Lisp manual.
112 $(srcdir)/mkinstalldirs
$(infodir)
113 cp elisp elisp-
[1-9] elisp-
[1-9][0-9] $(infodir)
114 ${INSTALL_INFO} --info-dir
=${infodir} ${infodir}/elisp
116 # This is for use in a separate distro of the Emacs Lisp manual.
118 $(MAKEINFO
) -I.
-I
$(srcdir) $(srcdir)/elisp.texi
121 rm -f
*.toc
*.aux
*.log
*.cp
*.cps
*.fn
*.fns
*.tp
*.tps \
122 *.vr
*.vrs
*.pg
*.pgs
*.ky
*.kys
127 maintainer-clean
: clean
128 rm -f elisp.
dvi elisp.oaux
129 cd
$(infodir); rm -f elisp elisp-
[1-9] elisp-
[1-9][0-9]
131 dist: $(infodir)/elisp elisp.
dvi
134 -mkdir temp
/$(manual
)
135 -ln
$(srcdir)/README
$(srcdir)/configure.in
$(srcdir)/configure \
136 $(srcdir)/Makefile.in
$(srcs
) \
137 $(miscmanualdir
)/texinfo.
tex \
138 elisp.
dvi elisp.aux elisp.??s \
139 $(infodir)/elisp
$(infodir)/elisp-
[1-9] $(infodir)/elisp-
[1-9][0-9] \
141 -(cd temp
/$(manual
); rm -f mkinstalldirs
)
142 cp
$(srcdir)/mkinstalldirs temp
/$(manual
)
143 (cd temp
/$(manual
); rm -f
*~
)
144 (cd temp
; tar chf
- $(manual
)) | gzip
> $(manual
).
tar.gz