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 # Standard configure variables.
20 # The name of the manual:
23 manual
= elisp-manual-20-
$(VERSION
)
25 # Uncomment this line for permuted index.
28 # List of all the texinfo files in the manual:
30 srcs
= elisp.texi back.texi \
31 abbrevs.texi advice.texi anti.texi backups.texi locals.texi buffers.texi \
32 calendar.texi commands.texi compile.texi control.texi customize.texi \
33 debugging.texi display.texi edebug.texi errors.texi eval.texi files.texi \
34 frames.texi functions.texi help.texi hooks.texi \
35 internals.texi intro.texi keymaps.texi lists.texi \
36 loading.texi macros.texi maps.texi markers.texi \
37 minibuf.texi modes.texi nonascii.texi numbers.texi objects.texi \
38 os.texi positions.texi processes.texi searching.texi \
39 sequences.texi streams.texi strings.texi symbols.texi \
40 syntax.texi text.texi tips.texi variables.texi \
42 index.unperm index.perm
44 .PHONY
: elisp.
dvi clean
46 # The info file is named `elisp'.
48 elisp
: $(srcs
) index.texi
52 elisp.
dvi: $(srcs
) index.texi
53 # Avoid losing old contents of aux file entirely.
54 -mv elisp.aux elisp.oaux
55 # First shot to define xrefs:
57 if
[ a
${permuted_index} != a
]; \
60 mv permuted.fns elisp.fns
; \
68 if
[ a
${permuted_index} != a
]; \
70 ln
-s index.perm index.texi
; \
72 ln
-s index.unperm index.texi
; \
76 .
/mkinstalldirs
$(infodir)
77 cp elisp elisp-
* $(infodir)
78 ${INSTALL_INFO} --dir-file
=${infodir}/dir --info-file
=${infodir}/elisp
81 install -c texinfo.
tex $(texmacrodir
)
84 rm -f
*.toc
*.aux
*.log
*.cp
*.cps
*.fn
*.fns
*.tp
*.tps \
85 *.vr
*.vrs
*.pg
*.pgs
*.ky
*.kys
89 maintainer-clean
: clean
96 -ln README configure.in configure Makefile.in permute-index
$(srcs
) \
97 texinfo.
tex elisp.
dvi elisp.aux elisp.??s elisp elisp-
[0-9] elisp-
[0-9][0-9] \
99 -(cd temp
/$(manual
); rm -f mkinstalldirs
)
100 cp mkinstalldirs temp
/$(manual
)
101 (cd temp
/$(manual
); rm -f
*~
)
102 (cd temp
; tar chf
- $(manual
)) | gzip
> $(manual
).
tar.gz