1 # Makefile for the GNU Emacs Lisp Reference Manual.
5 # Redefine `TEX' if `tex' does not invoke plain TeX. For example:
11 INSTALL_INFO
= install-info
13 # Where the TeX macros are kept:
14 texmacrodir
= /usr
/local
/lib
/tex/macros
16 # Where the Emacs hierarchy lives ($EMACS in the INSTALL document for Emacs.)
18 # emacslibdir = /usr/local/gnu/lib/emacs
20 # Directory where Emacs is installed, by default:
21 emacslibdir
= /usr
/local
/emacs
23 # Unless you have a nonstandard Emacs installation, these shouldn't have to
26 infodir = ${prefix}/info
28 # The name of the manual:
31 manual
= elisp-manual-20-
$(VERSION
)
33 # Uncomment this line for permuted index.
36 # List of all the texinfo files in the manual:
38 srcs
= elisp.texi back.texi \
39 abbrevs.texi advice.texi anti.texi backups.texi locals.texi buffers.texi \
40 calendar.texi commands.texi compile.texi control.texi customize.texi \
41 debugging.texi display.texi edebug.texi errors.texi eval.texi files.texi \
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 \
45 minibuf.texi modes.texi nonascii.texi numbers.texi objects.texi \
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 \
50 index.unperm index.perm
52 .PHONY
: elisp.
dvi clean
54 # The info file is named `elisp'.
56 elisp
: $(srcs
) index.texi
60 elisp.
dvi: $(srcs
) index.texi
61 # Avoid losing old contents of aux file entirely.
62 -mv elisp.aux elisp.oaux
63 # First shot to define xrefs:
65 if
[ a
${permuted_index} != a
]; \
68 mv permuted.fns elisp.fns
; \
76 if
[ a
${permuted_index} != a
]; \
78 ln
-s index.perm index.texi
; \
80 ln
-s index.unperm index.texi
; \
84 .
/mkinstalldirs
$(infodir)
85 cp elisp elisp-
* $(infodir)
86 ${INSTALL_INFO} --dir-file
=${infodir}/dir --info-file
=${infodir}/elisp
89 install -c texinfo.
tex $(texmacrodir
)
92 rm -f
*.toc
*.aux
*.log
*.cp
*.cps
*.fn
*.fns
*.tp
*.tps \
93 *.vr
*.vrs
*.pg
*.pgs
*.ky
*.kys
97 maintainer-clean
: clean
103 -mkdir temp
/$(manual
)
104 -ln README Makefile permute-index
$(srcs
) texinfo.
tex \
105 elisp.
dvi elisp.aux elisp.??s elisp elisp-
[0-9] elisp-
[0-9][0-9] temp
/$(manual
)
106 -(cd temp
/$(manual
); rm -f mkinstalldirs
)
107 cp mkinstalldirs temp
/$(manual
)
108 (cd temp
/$(manual
); rm -f
*~
)
109 (cd temp
; tar chf
- $(manual
)) | gzip
> $(manual
).
tar.gz