aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-04-18 16:24:14 +0000
committerRichard M. Stallman1998-04-18 16:24:14 +0000
commit0e9b2517d2fa1a7e509d4f27a6380ff10f47e6a3 (patch)
tree91693d8a844da1ab584feb4839433d806b71d70b
parent3060a06227cc74dff411c11bd200d308975efc4c (diff)
downloademacs-0e9b2517d2fa1a7e509d4f27a6380ff10f47e6a3.tar.gz
emacs-0e9b2517d2fa1a7e509d4f27a6380ff10f47e6a3.zip
(elisp): Don't try to make makeinfo.
Run makeinfo without specifying a directory. (srcs): Add nonascii.texi, customize.texi and advice.texi. (dist): Start by deleting `temp'. (makeinfo, texindex): Targets deleted. (makeinfo.o, texindex.o): Targets deleted. (clean, dist): Don't do anything with them or with getopt*. (SHELL): Defined. (elisp.tps): New target. (elisp.dvi): Depend on elisp.tps.
-rw-r--r--lispref/Makefile.in54
1 files changed, 18 insertions, 36 deletions
diff --git a/lispref/Makefile.in b/lispref/Makefile.in
index f00ad600f6f..5047f352edf 100644
--- a/lispref/Makefile.in
+++ b/lispref/Makefile.in
@@ -7,6 +7,7 @@
7 7
8TEX=tex 8TEX=tex
9MAKE=make 9MAKE=make
10SHELL=/bin/sh
10 11
11# Where the TeX macros are kept: 12# Where the TeX macros are kept:
12texmacrodir = /usr/local/lib/tex/macros 13texmacrodir = /usr/local/lib/tex/macros
@@ -25,8 +26,8 @@ infodir = ${prefix}/info
25 26
26# The name of the manual: 27# The name of the manual:
27 28
28VERSION=2.4.2 29VERSION=2.5
29manual = elisp-manual-19-$(VERSION) 30manual = elisp-manual-20-$(VERSION)
30 31
31# Uncomment this line for permuted index. 32# Uncomment this line for permuted index.
32# permuted_index = 1 33# permuted_index = 1
@@ -34,13 +35,13 @@ manual = elisp-manual-19-$(VERSION)
34# List of all the texinfo files in the manual: 35# List of all the texinfo files in the manual:
35 36
36srcs = elisp.texi back.texi \ 37srcs = elisp.texi back.texi \
37 abbrevs.texi anti.texi backups.texi locals.texi buffers.texi \ 38 abbrevs.texi advice.texi anti.texi backups.texi locals.texi buffers.texi \
38 calendar.texi commands.texi compile.texi control.texi debugging.texi \ 39 calendar.texi commands.texi compile.texi control.texi customize.texi \
39 display.texi edebug.texi errors.texi eval.texi files.texi \ 40 debugging.texi display.texi edebug.texi errors.texi eval.texi files.texi \
40 frames.texi functions.texi help.texi hooks.texi \ 41 frames.texi functions.texi help.texi hooks.texi \
41 internals.texi intro.texi keymaps.texi lists.texi \ 42 internals.texi intro.texi keymaps.texi lists.texi \
42 loading.texi macros.texi maps.texi markers.texi \ 43 loading.texi macros.texi maps.texi markers.texi \
43 minibuf.texi modes.texi numbers.texi objects.texi \ 44 minibuf.texi modes.texi nonascii.texi numbers.texi objects.texi \
44 os.texi positions.texi processes.texi searching.texi \ 45 os.texi positions.texi processes.texi searching.texi \
45 sequences.texi streams.texi strings.texi symbols.texi \ 46 sequences.texi streams.texi strings.texi symbols.texi \
46 syntax.texi text.texi tips.texi variables.texi \ 47 syntax.texi text.texi tips.texi variables.texi \
@@ -50,15 +51,12 @@ srcs = elisp.texi back.texi \
50.PHONY: elisp.dvi clean 51.PHONY: elisp.dvi clean
51 52
52# The info file is named `elisp'. 53# The info file is named `elisp'.
53# We depend on makeinfo.c rather than makeinfo -- there's no need to rebuild
54# everything just because makeinfo isn't part of the distribution.
55 54
56elisp: $(srcs) index.texi makeinfo.c 55elisp: $(srcs) index.texi
57 $(MAKE) makeinfo
58 rm -f elisp-* 56 rm -f elisp-*
59 ./makeinfo elisp.texi 57 makeinfo elisp.texi
60 58
61elisp.dvi: $(srcs) index.texi texindex 59elisp.dvi: $(srcs) index.texi elisp.tps texindex
62 # Avoid losing old contents of aux file entirely. 60 # Avoid losing old contents of aux file entirely.
63 -mv elisp.aux elisp.oaux 61 -mv elisp.aux elisp.oaux
64 # First shot to define xrefs: 62 # First shot to define xrefs:
@@ -72,6 +70,9 @@ elisp.dvi: $(srcs) index.texi texindex
72 fi 70 fi
73 $(TEX) elisp.texi 71 $(TEX) elisp.texi
74 72
73elisp.tps: texindex
74 ./texindex elisp.tp
75
75index.texi: 76index.texi:
76 if [ a${permuted_index} != a ]; \ 77 if [ a${permuted_index} != a ]; \
77 then \ 78 then \
@@ -92,38 +93,19 @@ clean:
92 rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \ 93 rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \
93 *.vr *.vrs *.pg *.pgs *.ky *.kys 94 *.vr *.vrs *.pg *.pgs *.ky *.kys
94 rm -f make.out core 95 rm -f make.out core
95 rm -f makeinfo.o makeinfo getopt.o getopt1.o 96 rm -f index.texi
96 rm -f texindex.o texindex index.texi
97 97
98maintainer-clean: clean 98maintainer-clean: clean
99 rm -f elisp elisp-* 99 rm -f elisp elisp-*
100 100
101dist: 101dist:
102 -rm -rf temp
102 -mkdir temp 103 -mkdir temp
103 -mkdir temp/$(manual) 104 -mkdir temp/$(manual)
104 -ln README Makefile permute-index $(srcs) \ 105 -ln README Makefile permute-index $(srcs) texinfo.tex \
105 texinfo.tex getopt.c getopt1.c getopt.h \
106 elisp.dvi elisp.aux elisp.??s elisp elisp-[0-9] elisp-[0-9][0-9] temp/$(manual) 106 elisp.dvi elisp.aux elisp.??s elisp elisp-[0-9] elisp-[0-9][0-9] temp/$(manual)
107 -(cd temp/$(manual); rm -f texindex.c makeinfo.c mkinstalldirs) 107 -(cd temp/$(manual); rm -f mkinstalldirs)
108 cp texindex.c makeinfo.c mkinstalldirs temp/$(manual) 108 cp mkinstalldirs temp/$(manual)
109 (cd temp/$(manual); rm -f *~) 109 (cd temp/$(manual); rm -f *~)
110 (cd temp; tar chf - $(manual)) | gzip > $(manual).tar.gz 110 (cd temp; tar chf - $(manual)) | gzip > $(manual).tar.gz
111 -rm -rf temp 111 -rm -rf temp
112
113# Make two programs used in generating output from texinfo.
114
115CFLAGS = -g
116
117texindex: texindex.o
118 $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $?
119texindex.o: texindex.c
120
121MAKEINFO_MAJOR = 1
122MAKEINFO_MINOR = 0
123MAKEINFO_FLAGS = -DMAKEINFO_MAJOR=$(MAKEINFO_MAJOR) -DMAKEINFO_MINOR=$(MAKEINFO_MINOR)
124
125makeinfo: makeinfo.o getopt.o getopt1.o
126 $(CC) $(LDFLAGS) -o makeinfo makeinfo.o getopt.o getopt1.o
127
128makeinfo.o: makeinfo.c
129 $(CC) -c $(CFLAGS) $(MAKEINFO_FLAGS) makeinfo.c