(lw_separator_p): Add `--:space' with the same
[bpt/emacs.git] / lispref / Makefile.in
CommitLineData
73804d4b
RS
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
8TEX=tex
52172e23 9MAKE=make
0e9b2517 10SHELL=/bin/sh
26a781f6 11INSTALL_INFO = install-info
73804d4b
RS
12
13# Where the TeX macros are kept:
14texmacrodir = /usr/local/lib/tex/macros
15
153d0a6d
KH
16# Standard configure variables.
17prefix = @prefix@
18infodir = @infodir@
73804d4b
RS
19
20# The name of the manual:
21
0e9b2517
RS
22VERSION=2.5
23manual = elisp-manual-20-$(VERSION)
73804d4b
RS
24
25# Uncomment this line for permuted index.
26# permuted_index = 1
27
28# List of all the texinfo files in the manual:
29
30srcs = elisp.texi back.texi \
0e9b2517
RS
31 abbrevs.texi advice.texi anti.texi backups.texi locals.texi buffers.texi \
32 calendar.texi commands.texi compile.texi control.texi customize.texi \
33 debugging.texi display.texi edebug.texi errors.texi eval.texi files.texi \
73804d4b
RS
34 frames.texi functions.texi help.texi hooks.texi \
35 internals.texi intro.texi keymaps.texi lists.texi \
36 loading.texi macros.texi maps.texi markers.texi \
0e9b2517 37 minibuf.texi modes.texi nonascii.texi numbers.texi objects.texi \
73804d4b
RS
38 os.texi positions.texi processes.texi searching.texi \
39 sequences.texi streams.texi strings.texi symbols.texi \
40 syntax.texi text.texi tips.texi variables.texi \
41 windows.texi \
42 index.unperm index.perm
43
44.PHONY: elisp.dvi clean
45
52172e23 46# The info file is named `elisp'.
52172e23 47
0e9b2517 48elisp: $(srcs) index.texi
52172e23 49 rm -f elisp-*
0e9b2517 50 makeinfo elisp.texi
52172e23 51
b569d7ea 52elisp.dvi: $(srcs) index.texi
73804d4b
RS
53 # Avoid losing old contents of aux file entirely.
54 -mv elisp.aux elisp.oaux
55 # First shot to define xrefs:
56 $(TEX) elisp.texi
57 if [ a${permuted_index} != a ]; \
58 then \
59 ./permute-index; \
55a7ac51 60 mv permuted.fns elisp.fns; \
b569d7ea 61 texindex elisp.tp; \
73804d4b 62 else \
b569d7ea 63 texindex elisp.??; \
73804d4b
RS
64 fi
65 $(TEX) elisp.texi
66
67index.texi:
68 if [ a${permuted_index} != a ]; \
69 then \
70 ln -s index.perm index.texi; \
71 else \
72 ln -s index.unperm index.texi; \
73 fi
74
52172e23
KH
75install: elisp
76 ./mkinstalldirs $(infodir)
77 cp elisp elisp-* $(infodir)
26a781f6 78 ${INSTALL_INFO} --dir-file=${infodir}/dir --info-file=${infodir}/elisp
73804d4b
RS
79
80installall: install
81 install -c texinfo.tex $(texmacrodir)
82
83clean:
84 rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \
85 *.vr *.vrs *.pg *.pgs *.ky *.kys
86 rm -f make.out core
0e9b2517 87 rm -f index.texi
73804d4b 88
2fb9d641 89maintainer-clean: clean
79069c68
KH
90 rm -f elisp elisp-*
91
73804d4b 92dist:
0e9b2517 93 -rm -rf temp
73804d4b
RS
94 -mkdir temp
95 -mkdir temp/$(manual)
153d0a6d
KH
96 -ln README configure.in configure Makefile.in permute-index $(srcs) \
97 texinfo.tex elisp.dvi elisp.aux elisp.??s elisp elisp-[0-9] elisp-[0-9][0-9] \
98 temp/$(manual)
0e9b2517
RS
99 -(cd temp/$(manual); rm -f mkinstalldirs)
100 cp mkinstalldirs temp/$(manual)
73804d4b
RS
101 (cd temp/$(manual); rm -f *~)
102 (cd temp; tar chf - $(manual)) | gzip > $(manual).tar.gz
103 -rm -rf temp