1 # Makefile for the GNU Emacs Lisp Reference Manual.
5 # Standard configure variables.
10 # Redefine `TEX' if `tex' does not invoke plain TeX. For example:
15 INSTALL_INFO
= install-info
18 # Where the TeX macros are kept:
19 texmacrodir
= /usr
/local
/lib
/tex/macros
21 # The environment variable and its value to add $(srcdir) to the path
22 # searched for TeX input files.
23 texinputdir
= TEXINPUTS
=$(srcdir):
25 # The name of the manual:
27 manual
= elisp-manual-21-
$(VERSION
)
29 # Uncomment this line for permuted index.
32 # List of all the texinfo files in the manual:
35 $(srcdir)/abbrevs.texi \
36 $(srcdir)/advice.texi \
39 $(srcdir)/backups.texi \
40 $(srcdir)/buffers.texi \
41 $(srcdir)/calendar.texi \
42 $(srcdir)/commands.texi \
43 $(srcdir)/compile.texi \
44 $(srcdir)/control.texi \
45 $(srcdir)/customize.texi \
46 $(srcdir)/debugging.texi \
47 $(srcdir)/display.texi \
48 $(srcdir)/edebug.texi \
49 $(srcdir)/elisp.texi \
50 $(srcdir)/errors.texi \
52 $(srcdir)/files.texi \
53 $(srcdir)/frames.texi \
54 $(srcdir)/functions.texi \
57 $(srcdir)/hooks.texi \
58 $(srcdir)/internals.texi \
59 $(srcdir)/intro.texi \
60 $(srcdir)/keymaps.texi \
61 $(srcdir)/lists.texi \
62 $(srcdir)/loading.texi \
63 $(srcdir)/locals.texi \
64 $(srcdir)/macros.texi \
66 $(srcdir)/markers.texi \
67 $(srcdir)/minibuf.texi \
68 $(srcdir)/modes.texi \
69 $(srcdir)/nonascii.texi \
70 $(srcdir)/numbers.texi \
71 $(srcdir)/objects.texi \
73 $(srcdir)/positions.texi \
74 $(srcdir)/processes.texi \
75 $(srcdir)/searching.texi \
76 $(srcdir)/sequences.texi \
77 $(srcdir)/streams.texi \
78 $(srcdir)/strings.texi \
79 $(srcdir)/symbols.texi \
80 $(srcdir)/syntax.texi \
83 $(srcdir)/variables.texi \
84 $(srcdir)/windows.texi \
85 $(srcdir)/index.unperm \
86 $(srcdir)/index.perm \
88 $(srcdir)/doclicense.texi
93 # The info file is named `elisp'.
95 elisp
: $(srcs
) index.texi
97 $(MAKEINFO
) -I
$(srcdir) $(srcdir)/elisp.texi
99 elisp.
dvi: $(srcs
) index.texi
100 # Avoid losing old contents of aux file entirely.
101 -mv elisp.aux elisp.oaux
102 # First shot to define xrefs.
103 $(texinputdir
) $(TEX
) $(srcdir)/elisp.texi
104 if
[ a
${permuted_index} != a
]; \
106 $(srcdir)/permute-index
; \
107 mv permuted.fns elisp.fns
; \
112 $(texinputdir
) $(TEX
) $(srcdir)/elisp.texi
115 if
[ a
${permuted_index} != a
]; \
117 ln
-s
$(srcdir)/index.perm index.texi || ln
$(srcdir)/index.perm index.texi
; \
119 ln
-s
$(srcdir)/index.unperm index.texi || ln
$(srcdir)/index.unperm index.texi
; \
123 $(srcdir)/mkinstalldirs
$(infodir)
124 cp elisp elisp-
* $(infodir)
125 ${INSTALL_INFO} --info-dir
=${infodir} ${infodir}/elisp
128 install -c
$(srcdir)/..
/man
/texinfo.
tex $(texmacrodir
)
131 rm -f
*.toc
*.aux
*.log
*.cp
*.cps
*.fn
*.fns
*.tp
*.tps \
132 *.vr
*.vrs
*.pg
*.pgs
*.ky
*.kys
136 maintainer-clean
: clean
137 rm -f elisp elisp-
* elisp.
dvi elisp.oaux
139 dist: elisp elisp.
dvi
142 -mkdir temp
/$(manual
)
143 -ln
$(srcdir)/README
$(srcdir)/configure.in
$(srcdir)/configure \
144 $(srcdir)/Makefile.in
$(srcdir)/permute-index
$(srcs
) \
145 $(srcdir)/..
/man
/texinfo.
tex \
146 elisp.
dvi elisp.aux elisp.??s elisp elisp-
[0-9] elisp-
[0-9][0-9] \
148 -(cd temp
/$(manual
); rm -f mkinstalldirs
)
149 cp
$(srcdir)/mkinstalldirs temp
/$(manual
)
150 (cd temp
/$(manual
); rm -f
*~
)
151 (cd temp
; tar chf
- $(manual
)) | gzip
> $(manual
).
tar.gz