]> code.delx.au - gnu-emacs/blob - lispref/Makefile.in
(auto-coding-alist): New variable.
[gnu-emacs] / lispref / Makefile.in
1 # Makefile for the GNU Emacs Lisp Reference Manual.
2 #
3 # 11 August 1990
4
5 # Redefine `TEX' if `tex' does not invoke plain TeX. For example:
6 # TEX=platex
7
8 TEX=tex
9 MAKE=make
10 SHELL=/bin/sh
11 INSTALL_INFO = install-info
12
13 # Where the TeX macros are kept:
14 texmacrodir = /usr/local/lib/tex/macros
15
16 # Where the Emacs hierarchy lives ($EMACS in the INSTALL document for Emacs.)
17 # For example:
18 # emacslibdir = /usr/local/gnu/lib/emacs
19
20 # Directory where Emacs is installed, by default:
21 emacslibdir = /usr/local/emacs
22
23 # Unless you have a nonstandard Emacs installation, these shouldn't have to
24 # be changed.
25 prefix = /usr/local
26 infodir = ${prefix}/info
27
28 # The name of the manual:
29
30 VERSION=2.5
31 manual = elisp-manual-20-$(VERSION)
32
33 # Uncomment this line for permuted index.
34 # permuted_index = 1
35
36 # List of all the texinfo files in the manual:
37
38 srcs = elisp.texi back.texi \
39 abbrevs.texi advice.texi anti.texi backups.texi locals.texi buffers.texi \
40 calendar.texi commands.texi compile.texi control.texi customize.texi \
41 debugging.texi display.texi edebug.texi errors.texi eval.texi files.texi \
42 frames.texi functions.texi help.texi hooks.texi \
43 internals.texi intro.texi keymaps.texi lists.texi \
44 loading.texi macros.texi maps.texi markers.texi \
45 minibuf.texi modes.texi nonascii.texi numbers.texi objects.texi \
46 os.texi positions.texi processes.texi searching.texi \
47 sequences.texi streams.texi strings.texi symbols.texi \
48 syntax.texi text.texi tips.texi variables.texi \
49 windows.texi \
50 index.unperm index.perm
51
52 .PHONY: elisp.dvi clean
53
54 # The info file is named `elisp'.
55
56 elisp: $(srcs) index.texi
57 rm -f elisp-*
58 makeinfo elisp.texi
59
60 elisp.dvi: $(srcs) index.texi
61 # Avoid losing old contents of aux file entirely.
62 -mv elisp.aux elisp.oaux
63 # First shot to define xrefs:
64 $(TEX) elisp.texi
65 if [ a${permuted_index} != a ]; \
66 then \
67 ./permute-index; \
68 mv permuted.fns elisp.fns; \
69 texindex elisp.tp; \
70 else \
71 texindex elisp.??; \
72 fi
73 $(TEX) elisp.texi
74
75 index.texi:
76 if [ a${permuted_index} != a ]; \
77 then \
78 ln -s index.perm index.texi; \
79 else \
80 ln -s index.unperm index.texi; \
81 fi
82
83 install: elisp
84 ./mkinstalldirs $(infodir)
85 cp elisp elisp-* $(infodir)
86 ${INSTALL_INFO} --dir-file=${infodir}/dir --info-file=${infodir}/elisp
87
88 installall: install
89 install -c texinfo.tex $(texmacrodir)
90
91 clean:
92 rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \
93 *.vr *.vrs *.pg *.pgs *.ky *.kys
94 rm -f make.out core
95 rm -f index.texi
96
97 maintainer-clean: clean
98 rm -f elisp elisp-*
99
100 dist:
101 -rm -rf temp
102 -mkdir temp
103 -mkdir temp/$(manual)
104 -ln README Makefile permute-index $(srcs) texinfo.tex \
105 elisp.dvi elisp.aux elisp.??s elisp elisp-[0-9] elisp-[0-9][0-9] temp/$(manual)
106 -(cd temp/$(manual); rm -f mkinstalldirs)
107 cp mkinstalldirs temp/$(manual)
108 (cd temp/$(manual); rm -f *~)
109 (cd temp; tar chf - $(manual)) | gzip > $(manual).tar.gz
110 -rm -rf temp