Commit | Line | Data |
---|---|---|
73804d4b RS |
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 | |
52172e23 | 9 | MAKE=make |
0e9b2517 | 10 | SHELL=/bin/sh |
26a781f6 | 11 | INSTALL_INFO = install-info |
94101513 | 12 | MAKEINFO=makeinfo |
73804d4b RS |
13 | |
14 | # Where the TeX macros are kept: | |
15 | texmacrodir = /usr/local/lib/tex/macros | |
16 | ||
153d0a6d KH |
17 | # Standard configure variables. |
18 | prefix = @prefix@ | |
19 | infodir = @infodir@ | |
73804d4b RS |
20 | |
21 | # The name of the manual: | |
22 | ||
106217c6 | 23 | VERSION=2.6 |
0e9b2517 | 24 | manual = elisp-manual-20-$(VERSION) |
73804d4b RS |
25 | |
26 | # Uncomment this line for permuted index. | |
27 | # permuted_index = 1 | |
28 | ||
29 | # List of all the texinfo files in the manual: | |
30 | ||
31 | srcs = elisp.texi back.texi \ | |
0e9b2517 RS |
32 | abbrevs.texi advice.texi anti.texi backups.texi locals.texi buffers.texi \ |
33 | calendar.texi commands.texi compile.texi control.texi customize.texi \ | |
34 | debugging.texi display.texi edebug.texi errors.texi eval.texi files.texi \ | |
106217c6 | 35 | frames.texi functions.texi hash.texi help.texi hooks.texi \ |
73804d4b RS |
36 | internals.texi intro.texi keymaps.texi lists.texi \ |
37 | loading.texi macros.texi maps.texi markers.texi \ | |
0e9b2517 | 38 | minibuf.texi modes.texi nonascii.texi numbers.texi objects.texi \ |
73804d4b RS |
39 | os.texi positions.texi processes.texi searching.texi \ |
40 | sequences.texi streams.texi strings.texi symbols.texi \ | |
41 | syntax.texi text.texi tips.texi variables.texi \ | |
42 | windows.texi \ | |
43 | index.unperm index.perm | |
44 | ||
45 | .PHONY: elisp.dvi clean | |
46 | ||
52172e23 | 47 | # The info file is named `elisp'. |
52172e23 | 48 | |
0e9b2517 | 49 | elisp: $(srcs) index.texi |
52172e23 | 50 | rm -f elisp-* |
94101513 | 51 | $(MAKEINFO) elisp.texi |
52172e23 | 52 | |
b569d7ea | 53 | elisp.dvi: $(srcs) index.texi |
73804d4b RS |
54 | # Avoid losing old contents of aux file entirely. |
55 | -mv elisp.aux elisp.oaux | |
56 | # First shot to define xrefs: | |
57 | $(TEX) elisp.texi | |
58 | if [ a${permuted_index} != a ]; \ | |
59 | then \ | |
60 | ./permute-index; \ | |
55a7ac51 | 61 | mv permuted.fns elisp.fns; \ |
b569d7ea | 62 | texindex elisp.tp; \ |
73804d4b | 63 | else \ |
b569d7ea | 64 | texindex elisp.??; \ |
73804d4b RS |
65 | fi |
66 | $(TEX) elisp.texi | |
67 | ||
68 | index.texi: | |
69 | if [ a${permuted_index} != a ]; \ | |
70 | then \ | |
81e9cc86 | 71 | ln -s index.perm index.texi || ln index.perm index.texi; \ |
73804d4b | 72 | else \ |
81e9cc86 | 73 | ln -s index.unperm index.texi || ln index.unperm index.texi; \ |
73804d4b RS |
74 | fi |
75 | ||
52172e23 KH |
76 | install: elisp |
77 | ./mkinstalldirs $(infodir) | |
78 | cp elisp elisp-* $(infodir) | |
26a781f6 | 79 | ${INSTALL_INFO} --dir-file=${infodir}/dir --info-file=${infodir}/elisp |
73804d4b RS |
80 | |
81 | installall: install | |
82 | install -c texinfo.tex $(texmacrodir) | |
83 | ||
84 | clean: | |
85 | rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \ | |
86 | *.vr *.vrs *.pg *.pgs *.ky *.kys | |
87 | rm -f make.out core | |
0e9b2517 | 88 | rm -f index.texi |
73804d4b | 89 | |
2fb9d641 | 90 | maintainer-clean: clean |
79069c68 KH |
91 | rm -f elisp elisp-* |
92 | ||
73804d4b | 93 | dist: |
0e9b2517 | 94 | -rm -rf temp |
73804d4b RS |
95 | -mkdir temp |
96 | -mkdir temp/$(manual) | |
153d0a6d KH |
97 | -ln README configure.in configure Makefile.in permute-index $(srcs) \ |
98 | texinfo.tex elisp.dvi elisp.aux elisp.??s elisp elisp-[0-9] elisp-[0-9][0-9] \ | |
99 | temp/$(manual) | |
0e9b2517 RS |
100 | -(cd temp/$(manual); rm -f mkinstalldirs) |
101 | cp mkinstalldirs temp/$(manual) | |
73804d4b RS |
102 | (cd temp/$(manual); rm -f *~) |
103 | (cd temp; tar chf - $(manual)) | gzip > $(manual).tar.gz | |
104 | -rm -rf temp |