annotate lispref/Makefile.in @ 25125:8282b2b596a2

(lock_if_free): Indentation fix.
author Karl Heuer <kwzh@gnu.org>
date Fri, 30 Jul 1999 14:30:03 +0000
parents d2f7ed631ea7
children fed6ebbe8644
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6558
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1 # Makefile for the GNU Emacs Lisp Reference Manual.
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2 #
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
3 # 11 August 1990
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
4
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
5 # Redefine `TEX' if `tex' does not invoke plain TeX. For example:
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
6 # TEX=platex
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
7
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
8 TEX=tex
14936
ad2ca475c6d6 (elisp): Make this be the default target.
Karl Heuer <kwzh@gnu.org>
parents: 12317
diff changeset
9 MAKE=make
21644
dd9d371a4489 (elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents: 16703
diff changeset
10 SHELL=/bin/sh
22456
b7bf9b05f494 (INSTALL_INFO): New variable.
Richard M. Stallman <rms@gnu.org>
parents: 22014
diff changeset
11 INSTALL_INFO = install-info
6558
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
12
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
13 # Where the TeX macros are kept:
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
14 texmacrodir = /usr/local/lib/tex/macros
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
15
23150
d2f7ed631ea7 Renamed from Makefile.
Karl Heuer <kwzh@gnu.org>
parents: 22456
diff changeset
16 # Standard configure variables.
d2f7ed631ea7 Renamed from Makefile.
Karl Heuer <kwzh@gnu.org>
parents: 22456
diff changeset
17 prefix = @prefix@
d2f7ed631ea7 Renamed from Makefile.
Karl Heuer <kwzh@gnu.org>
parents: 22456
diff changeset
18 infodir = @infodir@
6558
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
19
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
20 # The name of the manual:
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
21
21644
dd9d371a4489 (elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents: 16703
diff changeset
22 VERSION=2.5
dd9d371a4489 (elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents: 16703
diff changeset
23 manual = elisp-manual-20-$(VERSION)
6558
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
24
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
25 # Uncomment this line for permuted index.
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
26 # permuted_index = 1
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
27
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
28 # List of all the texinfo files in the manual:
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
29
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
30 srcs = elisp.texi back.texi \
21644
dd9d371a4489 (elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents: 16703
diff changeset
31 abbrevs.texi advice.texi anti.texi backups.texi locals.texi buffers.texi \
dd9d371a4489 (elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents: 16703
diff changeset
32 calendar.texi commands.texi compile.texi control.texi customize.texi \
dd9d371a4489 (elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents: 16703
diff changeset
33 debugging.texi display.texi edebug.texi errors.texi eval.texi files.texi \
6558
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
34 frames.texi functions.texi help.texi hooks.texi \
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
35 internals.texi intro.texi keymaps.texi lists.texi \
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
36 loading.texi macros.texi maps.texi markers.texi \
21644
dd9d371a4489 (elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents: 16703
diff changeset
37 minibuf.texi modes.texi nonascii.texi numbers.texi objects.texi \
6558
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
38 os.texi positions.texi processes.texi searching.texi \
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
39 sequences.texi streams.texi strings.texi symbols.texi \
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
40 syntax.texi text.texi tips.texi variables.texi \
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
41 windows.texi \
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
42 index.unperm index.perm
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
43
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
44 .PHONY: elisp.dvi clean
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
45
14936
ad2ca475c6d6 (elisp): Make this be the default target.
Karl Heuer <kwzh@gnu.org>
parents: 12317
diff changeset
46 # The info file is named `elisp'.
ad2ca475c6d6 (elisp): Make this be the default target.
Karl Heuer <kwzh@gnu.org>
parents: 12317
diff changeset
47
21644
dd9d371a4489 (elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents: 16703
diff changeset
48 elisp: $(srcs) index.texi
14936
ad2ca475c6d6 (elisp): Make this be the default target.
Karl Heuer <kwzh@gnu.org>
parents: 12317
diff changeset
49 rm -f elisp-*
21644
dd9d371a4489 (elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents: 16703
diff changeset
50 makeinfo elisp.texi
14936
ad2ca475c6d6 (elisp): Make this be the default target.
Karl Heuer <kwzh@gnu.org>
parents: 12317
diff changeset
51
21913
e9cc81bc8d9a (elisp.dvi): Don't depend on texindex or on elisp.tps.
Richard M. Stallman <rms@gnu.org>
parents: 21644
diff changeset
52 elisp.dvi: $(srcs) index.texi
6558
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
53 # Avoid losing old contents of aux file entirely.
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
54 -mv elisp.aux elisp.oaux
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
55 # First shot to define xrefs:
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
56 $(TEX) elisp.texi
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
57 if [ a${permuted_index} != a ]; \
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
58 then \
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
59 ./permute-index; \
22014
9c5897743b4f (elisp.dvi): Add missing backslash.
Richard M. Stallman <rms@gnu.org>
parents: 21913
diff changeset
60 mv permuted.fns elisp.fns; \
21913
e9cc81bc8d9a (elisp.dvi): Don't depend on texindex or on elisp.tps.
Richard M. Stallman <rms@gnu.org>
parents: 21644
diff changeset
61 texindex elisp.tp; \
6558
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
62 else \
21913
e9cc81bc8d9a (elisp.dvi): Don't depend on texindex or on elisp.tps.
Richard M. Stallman <rms@gnu.org>
parents: 21644
diff changeset
63 texindex elisp.??; \
6558
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
64 fi
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
65 $(TEX) elisp.texi
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
66
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
67 index.texi:
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
68 if [ a${permuted_index} != a ]; \
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
69 then \
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
70 ln -s index.perm index.texi; \
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
71 else \
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
72 ln -s index.unperm index.texi; \
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
73 fi
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
74
14936
ad2ca475c6d6 (elisp): Make this be the default target.
Karl Heuer <kwzh@gnu.org>
parents: 12317
diff changeset
75 install: elisp
ad2ca475c6d6 (elisp): Make this be the default target.
Karl Heuer <kwzh@gnu.org>
parents: 12317
diff changeset
76 ./mkinstalldirs $(infodir)
ad2ca475c6d6 (elisp): Make this be the default target.
Karl Heuer <kwzh@gnu.org>
parents: 12317
diff changeset
77 cp elisp elisp-* $(infodir)
22456
b7bf9b05f494 (INSTALL_INFO): New variable.
Richard M. Stallman <rms@gnu.org>
parents: 22014
diff changeset
78 ${INSTALL_INFO} --dir-file=${infodir}/dir --info-file=${infodir}/elisp
6558
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
79
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
80 installall: install
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
81 install -c texinfo.tex $(texmacrodir)
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
82
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
83 clean:
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
84 rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
85 *.vr *.vrs *.pg *.pgs *.ky *.kys
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
86 rm -f make.out core
21644
dd9d371a4489 (elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents: 16703
diff changeset
87 rm -f index.texi
6558
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
88
12317
6236bdeec18d (VERSION): Update version number.
Richard M. Stallman <rms@gnu.org>
parents: 12112
diff changeset
89 maintainer-clean: clean
12112
841aa5ac0f46 (realclean): New target.
Karl Heuer <kwzh@gnu.org>
parents: 7543
diff changeset
90 rm -f elisp elisp-*
841aa5ac0f46 (realclean): New target.
Karl Heuer <kwzh@gnu.org>
parents: 7543
diff changeset
91
6558
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
92 dist:
21644
dd9d371a4489 (elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents: 16703
diff changeset
93 -rm -rf temp
6558
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
94 -mkdir temp
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
95 -mkdir temp/$(manual)
23150
d2f7ed631ea7 Renamed from Makefile.
Karl Heuer <kwzh@gnu.org>
parents: 22456
diff changeset
96 -ln README configure.in configure Makefile.in permute-index $(srcs) \
d2f7ed631ea7 Renamed from Makefile.
Karl Heuer <kwzh@gnu.org>
parents: 22456
diff changeset
97 texinfo.tex elisp.dvi elisp.aux elisp.??s elisp elisp-[0-9] elisp-[0-9][0-9] \
d2f7ed631ea7 Renamed from Makefile.
Karl Heuer <kwzh@gnu.org>
parents: 22456
diff changeset
98 temp/$(manual)
21644
dd9d371a4489 (elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents: 16703
diff changeset
99 -(cd temp/$(manual); rm -f mkinstalldirs)
dd9d371a4489 (elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents: 16703
diff changeset
100 cp mkinstalldirs temp/$(manual)
6558
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
101 (cd temp/$(manual); rm -f *~)
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
102 (cd temp; tar chf - $(manual)) | gzip > $(manual).tar.gz
fa8ff07eaafc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
103 -rm -rf temp