1 |
# Makefile for the GNU Emacs Lisp Reference Manual. |
# Makefile for the GNU Emacs Lisp Reference Manual. |
2 |
|
|
3 |
# Copyright (C) 1990,1991,1992,1993,1994,1995,1996,1998,1999,2000,2001 |
# Copyright (C) 1990,1991,1992,1993,1994,1995,1996,1998,1999,2000,2001,2003 |
4 |
# Free Software Foundation, Inc. |
# Free Software Foundation, Inc. |
5 |
|
|
6 |
# This file is part of GNU Emacs. |
# This file is part of GNU Emacs. |
28 |
|
|
29 |
infodir = $(srcdir)/../info |
infodir = $(srcdir)/../info |
30 |
|
|
31 |
# Redefine `TEX' if `tex' does not invoke plain TeX. For example: |
TEXI2DVI = texi2dvi |
32 |
# TEX=platex |
SHELL = /bin/sh |
|
TEX=tex |
|
|
SHELL=/bin/sh |
|
33 |
INSTALL_INFO = install-info |
INSTALL_INFO = install-info |
34 |
MAKEINFO=makeinfo |
MAKEINFO = makeinfo |
|
|
|
|
# The environment variable and its value to add $(srcdir) to the path |
|
|
# searched for TeX input files. |
|
|
texinputdir = TEXINPUTS=$(srcdir):"$(TEXINPUTS)" |
|
35 |
|
|
36 |
# The name of the manual: |
# The name of the manual: |
37 |
VERSION=2.9 |
VERSION=2.9 |
38 |
manual = elisp-manual-21-$(VERSION) |
manual = elisp-manual-21-$(VERSION) |
39 |
|
|
|
# Uncomment this line for permuted index. |
|
|
# permuted_index = 1 |
|
|
|
|
40 |
# List of all the texinfo files in the manual: |
# List of all the texinfo files in the manual: |
41 |
|
|
42 |
srcs = \ |
srcs = \ |
90 |
$(srcdir)/tips.texi \ |
$(srcdir)/tips.texi \ |
91 |
$(srcdir)/variables.texi \ |
$(srcdir)/variables.texi \ |
92 |
$(srcdir)/windows.texi \ |
$(srcdir)/windows.texi \ |
93 |
$(srcdir)/index.unperm \ |
$(srcdir)/index.texi \ |
|
$(srcdir)/index.perm \ |
|
94 |
$(srcdir)/gpl.texi \ |
$(srcdir)/gpl.texi \ |
95 |
$(srcdir)/doclicense.texi |
$(srcdir)/doclicense.texi |
96 |
|
|
100 |
# The info file is named `elisp'. |
# The info file is named `elisp'. |
101 |
info: $(infodir)/elisp |
info: $(infodir)/elisp |
102 |
|
|
103 |
$(infodir)/elisp: $(srcs) index.texi |
$(infodir)/elisp: $(srcs) |
104 |
$(MAKEINFO) -I. -I$(srcdir) $(srcdir)/elisp.texi -o $(infodir)/elisp |
$(MAKEINFO) -I. -I$(srcdir) $(srcdir)/elisp.texi -o $(infodir)/elisp |
105 |
|
|
106 |
elisp.dvi: $(srcs) index.texi |
elisp.dvi: $(srcs) |
107 |
# Avoid losing old contents of aux file entirely. |
$(TEXI2DVI) -I $(srcdir) $(srcdir)/elisp.texi |
|
-mv elisp.aux elisp.oaux |
|
|
# First shot to define xrefs. |
|
|
$(texinputdir) $(TEX) $(srcdir)/elisp.texi |
|
|
if [ a${permuted_index} != a ]; \ |
|
|
then \ |
|
|
$(srcdir)/permute-index; \ |
|
|
mv permuted.fns elisp.fns; \ |
|
|
texindex elisp.tp; \ |
|
|
else \ |
|
|
texindex elisp.??; \ |
|
|
fi |
|
|
$(texinputdir) $(TEX) $(srcdir)/elisp.texi |
|
|
|
|
|
index.texi: |
|
|
if [ a${permuted_index} != a ]; \ |
|
|
then \ |
|
|
ln -s $(srcdir)/index.perm index.texi || ln $(srcdir)/index.perm index.texi || cp $(srcdir)/index.perm index.texi; \ |
|
|
else \ |
|
|
ln -s $(srcdir)/index.unperm index.texi || ln $(srcdir)/index.unperm index.texi || cp $(srcdir)/index.unperm index.texi; \ |
|
|
fi |
|
108 |
|
|
109 |
install: elisp |
install: elisp |
110 |
$(srcdir)/mkinstalldirs $(infodir) |
$(srcdir)/mkinstalldirs $(infodir) |
127 |
-mkdir temp |
-mkdir temp |
128 |
-mkdir temp/$(manual) |
-mkdir temp/$(manual) |
129 |
-ln $(srcdir)/README $(srcdir)/configure.in $(srcdir)/configure \ |
-ln $(srcdir)/README $(srcdir)/configure.in $(srcdir)/configure \ |
130 |
$(srcdir)/Makefile.in $(srcdir)/permute-index $(srcs) \ |
$(srcdir)/Makefile.in $(srcs) \ |
131 |
$(srcdir)/../man/texinfo.tex \ |
$(srcdir)/../man/texinfo.tex \ |
132 |
elisp.dvi elisp.aux elisp.??s elisp elisp-[0-9] elisp-[0-9][0-9] \ |
elisp.dvi elisp.aux elisp.??s elisp elisp-[0-9] elisp-[0-9][0-9] \ |
133 |
temp/$(manual) |
temp/$(manual) |