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