Mercurial > emacs
annotate lispref/Makefile.in @ 22863:58584d6a8237
(Info-find-node): Position at the beginning of the node
after calling Info-select-node.
(Info-insert-dir): Catch errors in insert-file-contents.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 01 Aug 1998 19:03:50 +0000 |
parents | b7bf9b05f494 |
children | d2f7ed631ea7 |
rev | line source |
---|---|
6558 | 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 | |
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 | 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 | |
21644
dd9d371a4489
(elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents:
16703
diff
changeset
|
30 VERSION=2.5 |
dd9d371a4489
(elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents:
16703
diff
changeset
|
31 manual = elisp-manual-20-$(VERSION) |
6558 | 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 \ | |
21644
dd9d371a4489
(elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents:
16703
diff
changeset
|
39 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
|
40 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
|
41 debugging.texi display.texi edebug.texi errors.texi eval.texi files.texi \ |
6558 | 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 \ | |
21644
dd9d371a4489
(elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents:
16703
diff
changeset
|
45 minibuf.texi modes.texi nonascii.texi numbers.texi objects.texi \ |
6558 | 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 | |
14936
ad2ca475c6d6
(elisp): Make this be the default target.
Karl Heuer <kwzh@gnu.org>
parents:
12317
diff
changeset
|
54 # The info file is named `elisp'. |
ad2ca475c6d6
(elisp): Make this be the default target.
Karl Heuer <kwzh@gnu.org>
parents:
12317
diff
changeset
|
55 |
21644
dd9d371a4489
(elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents:
16703
diff
changeset
|
56 elisp: $(srcs) index.texi |
14936
ad2ca475c6d6
(elisp): Make this be the default target.
Karl Heuer <kwzh@gnu.org>
parents:
12317
diff
changeset
|
57 rm -f elisp-* |
21644
dd9d371a4489
(elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents:
16703
diff
changeset
|
58 makeinfo elisp.texi |
14936
ad2ca475c6d6
(elisp): Make this be the default target.
Karl Heuer <kwzh@gnu.org>
parents:
12317
diff
changeset
|
59 |
21913
e9cc81bc8d9a
(elisp.dvi): Don't depend on texindex or on elisp.tps.
Richard M. Stallman <rms@gnu.org>
parents:
21644
diff
changeset
|
60 elisp.dvi: $(srcs) index.texi |
6558 | 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; \ | |
22014
9c5897743b4f
(elisp.dvi): Add missing backslash.
Richard M. Stallman <rms@gnu.org>
parents:
21913
diff
changeset
|
68 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
|
69 texindex elisp.tp; \ |
6558 | 70 else \ |
21913
e9cc81bc8d9a
(elisp.dvi): Don't depend on texindex or on elisp.tps.
Richard M. Stallman <rms@gnu.org>
parents:
21644
diff
changeset
|
71 texindex elisp.??; \ |
6558 | 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 | |
14936
ad2ca475c6d6
(elisp): Make this be the default target.
Karl Heuer <kwzh@gnu.org>
parents:
12317
diff
changeset
|
83 install: elisp |
ad2ca475c6d6
(elisp): Make this be the default target.
Karl Heuer <kwzh@gnu.org>
parents:
12317
diff
changeset
|
84 ./mkinstalldirs $(infodir) |
ad2ca475c6d6
(elisp): Make this be the default target.
Karl Heuer <kwzh@gnu.org>
parents:
12317
diff
changeset
|
85 cp elisp elisp-* $(infodir) |
22456
b7bf9b05f494
(INSTALL_INFO): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
22014
diff
changeset
|
86 ${INSTALL_INFO} --dir-file=${infodir}/dir --info-file=${infodir}/elisp |
6558 | 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 | |
21644
dd9d371a4489
(elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents:
16703
diff
changeset
|
95 rm -f index.texi |
6558 | 96 |
12317
6236bdeec18d
(VERSION): Update version number.
Richard M. Stallman <rms@gnu.org>
parents:
12112
diff
changeset
|
97 maintainer-clean: clean |
12112 | 98 rm -f elisp elisp-* |
99 | |
6558 | 100 dist: |
21644
dd9d371a4489
(elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents:
16703
diff
changeset
|
101 -rm -rf temp |
6558 | 102 -mkdir temp |
103 -mkdir temp/$(manual) | |
21644
dd9d371a4489
(elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents:
16703
diff
changeset
|
104 -ln README Makefile permute-index $(srcs) texinfo.tex \ |
6558 | 105 elisp.dvi elisp.aux elisp.??s elisp elisp-[0-9] elisp-[0-9][0-9] temp/$(manual) |
21644
dd9d371a4489
(elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents:
16703
diff
changeset
|
106 -(cd temp/$(manual); rm -f mkinstalldirs) |
dd9d371a4489
(elisp): Don't try to make makeinfo.
Richard M. Stallman <rms@gnu.org>
parents:
16703
diff
changeset
|
107 cp mkinstalldirs temp/$(manual) |
6558 | 108 (cd temp/$(manual); rm -f *~) |
109 (cd temp; tar chf - $(manual)) | gzip > $(manual).tar.gz | |
110 -rm -rf temp |