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
14 # Where the TeX macros are kept:
15 texmacrodir
= /usr
/local
/lib
/tex/macros
17 # Standard configure variables.
21 # The name of the manual:
24 manual
= elisp-manual-20-
$(VERSION
)
26 # Uncomment this line for permuted index.
29 # List of all the texinfo files in the manual:
31 srcs
= elisp.texi back.texi \
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 \
35 frames.texi functions.texi hash.texi help.texi hooks.texi \
36 internals.texi intro.texi keymaps.texi lists.texi \
37 loading.texi macros.texi maps.texi markers.texi \
38 minibuf.texi modes.texi nonascii.texi numbers.texi objects.texi \
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 \
43 index.unperm index.perm
45 .PHONY
: elisp.
dvi clean
47 # The info file is named `elisp'.
49 elisp
: $(srcs
) index.texi
51 $(MAKEINFO
) elisp.texi
53 elisp.
dvi: $(srcs
) index.texi
54 # Avoid losing old contents of aux file entirely.
55 -mv elisp.aux elisp.oaux
56 # First shot to define xrefs:
58 if
[ a
${permuted_index} != a
]; \
61 mv permuted.fns elisp.fns
; \
69 if
[ a
${permuted_index} != a
]; \
71 ln
-s index.perm index.texi || ln index.perm index.texi
; \
73 ln
-s index.unperm index.texi || ln index.unperm index.texi
; \
77 .
/mkinstalldirs
$(infodir)
78 cp elisp elisp-
* $(infodir)
79 ${INSTALL_INFO} --info-dir
=${infodir} ${infodir}/elisp
82 install -c texinfo.
tex $(texmacrodir
)
85 rm -f
*.toc
*.aux
*.log
*.cp
*.cps
*.fn
*.fns
*.tp
*.tps \
86 *.vr
*.vrs
*.pg
*.pgs
*.ky
*.kys
90 maintainer-clean
: clean
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] \
100 -(cd temp
/$(manual
); rm -f mkinstalldirs
)
101 cp mkinstalldirs temp
/$(manual
)
102 (cd temp
/$(manual
); rm -f
*~
)
103 (cd temp
; tar chf
- $(manual
)) | gzip
> $(manual
).
tar.gz