]> code.delx.au - gnu-emacs/blob - lispref/Makefile.in
*** empty log message ***
[gnu-emacs] / lispref / Makefile.in
1 # Makefile for the GNU Emacs Lisp Reference Manual.
2 #
3 # 2 September 2001
4
5 # Standard configure variables.
6 prefix = @prefix@
7 infodir = @infodir@
8 srcdir = @srcdir@
9
10 # Redefine `TEX' if `tex' does not invoke plain TeX. For example:
11 # TEX=platex
12 TEX=tex
13 MAKE=make
14 SHELL=/bin/sh
15 INSTALL_INFO = install-info
16 MAKEINFO=makeinfo
17
18 # Where the TeX macros are kept:
19 texmacrodir = /usr/local/lib/tex/macros
20
21 # The environment variable and its value to add $(srcdir) to the path
22 # searched for TeX input files.
23 texinputdir = TEXINPUTS=$(srcdir):
24
25 # The name of the manual:
26 VERSION=2.8
27 manual = elisp-manual-21-$(VERSION)
28
29 # Uncomment this line for permuted index.
30 # permuted_index = 1
31
32 # List of all the texinfo files in the manual:
33
34 srcs = \
35 $(srcdir)/abbrevs.texi \
36 $(srcdir)/advice.texi \
37 $(srcdir)/anti.texi \
38 $(srcdir)/back.texi \
39 $(srcdir)/backups.texi \
40 $(srcdir)/buffers.texi \
41 $(srcdir)/calendar.texi \
42 $(srcdir)/commands.texi \
43 $(srcdir)/compile.texi \
44 $(srcdir)/control.texi \
45 $(srcdir)/customize.texi \
46 $(srcdir)/debugging.texi \
47 $(srcdir)/display.texi \
48 $(srcdir)/edebug.texi \
49 $(srcdir)/elisp.texi \
50 $(srcdir)/errors.texi \
51 $(srcdir)/eval.texi \
52 $(srcdir)/files.texi \
53 $(srcdir)/frames.texi \
54 $(srcdir)/functions.texi \
55 $(srcdir)/hash.texi \
56 $(srcdir)/help.texi \
57 $(srcdir)/hooks.texi \
58 $(srcdir)/internals.texi \
59 $(srcdir)/intro.texi \
60 $(srcdir)/keymaps.texi \
61 $(srcdir)/lists.texi \
62 $(srcdir)/loading.texi \
63 $(srcdir)/locals.texi \
64 $(srcdir)/macros.texi \
65 $(srcdir)/maps.texi \
66 $(srcdir)/markers.texi \
67 $(srcdir)/minibuf.texi \
68 $(srcdir)/modes.texi \
69 $(srcdir)/nonascii.texi \
70 $(srcdir)/numbers.texi \
71 $(srcdir)/objects.texi \
72 $(srcdir)/os.texi \
73 $(srcdir)/positions.texi \
74 $(srcdir)/processes.texi \
75 $(srcdir)/searching.texi \
76 $(srcdir)/sequences.texi \
77 $(srcdir)/streams.texi \
78 $(srcdir)/strings.texi \
79 $(srcdir)/symbols.texi \
80 $(srcdir)/syntax.texi \
81 $(srcdir)/text.texi \
82 $(srcdir)/tips.texi \
83 $(srcdir)/variables.texi \
84 $(srcdir)/windows.texi \
85 $(srcdir)/index.unperm \
86 $(srcdir)/index.perm
87
88 .PHONY: clean
89
90 # The info file is named `elisp'.
91
92 elisp: $(srcs) index.texi
93 rm -f elisp-*
94 $(MAKEINFO) -I $(srcdir) $(srcdir)/elisp.texi
95
96 elisp.dvi: $(srcs) index.texi
97 # Avoid losing old contents of aux file entirely.
98 -mv elisp.aux elisp.oaux
99 # First shot to define xrefs.
100 $(texinputdir) $(TEX) $(srcdir)/elisp.texi
101 if [ a${permuted_index} != a ]; \
102 then \
103 $(srcdir)/permute-index; \
104 mv permuted.fns elisp.fns; \
105 texindex elisp.tp; \
106 else \
107 texindex elisp.??; \
108 fi
109 $(texinputdir) $(TEX) $(srcdir)/elisp.texi
110
111 index.texi:
112 if [ a${permuted_index} != a ]; \
113 then \
114 ln -s $(srcdir)/index.perm index.texi || ln $(srcdir)/index.perm index.texi; \
115 else \
116 ln -s $(srcdir)/index.unperm index.texi || ln $(srcdir)/index.unperm index.texi; \
117 fi
118
119 install: elisp
120 $(srcdir)/mkinstalldirs $(infodir)
121 cp elisp elisp-* $(infodir)
122 ${INSTALL_INFO} --info-dir=${infodir} ${infodir}/elisp
123
124 installall: install
125 install -c $(srcdir)/../man/texinfo.tex $(texmacrodir)
126
127 clean:
128 rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \
129 *.vr *.vrs *.pg *.pgs *.ky *.kys
130 rm -f make.out core
131 rm -f index.texi
132
133 maintainer-clean: clean
134 rm -f elisp elisp-* elisp.dvi elisp.oaux
135
136 dist: elisp elisp.dvi
137 -rm -rf temp
138 -mkdir temp
139 -mkdir temp/$(manual)
140 -ln $(srcdir)/README $(srcdir)/configure.in $(srcdir)/configure \
141 $(srcdir)/Makefile.in $(srcdir)/permute-index $(srcs) \
142 $(srcdir)/../man/texinfo.tex \
143 elisp.dvi elisp.aux elisp.??s elisp elisp-[0-9] elisp-[0-9][0-9] \
144 temp/$(manual)
145 -(cd temp/$(manual); rm -f mkinstalldirs)
146 cp $(srcdir)/mkinstalldirs temp/$(manual)
147 (cd temp/$(manual); rm -f *~)
148 (cd temp; tar chf - $(manual)) | gzip > $(manual).tar.gz
149 -rm -rf temp