]> code.delx.au - gnu-emacs/blob - lispref/Makefile.in
(srcs): Add gpl.texi and doclicense.texi.
[gnu-emacs] / lispref / Makefile.in
1 # Makefile for the GNU Emacs Lisp Reference Manual.
2 #
3 # 2 September 2001
4
5 # Standard configure variables.
6 prefix = @prefix@
7 infodir = @infodir@
8 srcdir = @srcdir@
9
10 # Redefine `TEX' if `tex' does not invoke plain TeX. For example:
11 # TEX=platex
12 TEX=tex
13 MAKE=make
14 SHELL=/bin/sh
15 INSTALL_INFO = install-info
16 MAKEINFO=makeinfo
17
18 # Where the TeX macros are kept:
19 texmacrodir = /usr/local/lib/tex/macros
20
21 # The environment variable and its value to add $(srcdir) to the path
22 # searched for TeX input files.
23 texinputdir = TEXINPUTS=$(srcdir):
24
25 # The name of the manual:
26 VERSION=2.8
27 manual = elisp-manual-21-$(VERSION)
28
29 # Uncomment this line for permuted index.
30 # permuted_index = 1
31
32 # List of all the texinfo files in the manual:
33
34 srcs = \
35 $(srcdir)/abbrevs.texi \
36 $(srcdir)/advice.texi \
37 $(srcdir)/anti.texi \
38 $(srcdir)/back.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 \
51 $(srcdir)/eval.texi \
52 $(srcdir)/files.texi \
53 $(srcdir)/frames.texi \
54 $(srcdir)/functions.texi \
55 $(srcdir)/hash.texi \
56 $(srcdir)/help.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 \
65 $(srcdir)/maps.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 \
72 $(srcdir)/os.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 \
81 $(srcdir)/text.texi \
82 $(srcdir)/tips.texi \
83 $(srcdir)/variables.texi \
84 $(srcdir)/windows.texi \
85 $(srcdir)/index.unperm \
86 $(srcdir)/index.perm \
87 $(srcdir)/gpl.texi \
88 $(srcdir)/doclicense.texi
89
90
91 .PHONY: clean
92
93 # The info file is named `elisp'.
94
95 elisp: $(srcs) index.texi
96 rm -f elisp-*
97 $(MAKEINFO) -I $(srcdir) $(srcdir)/elisp.texi
98
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 ]; \
105 then \
106 $(srcdir)/permute-index; \
107 mv permuted.fns elisp.fns; \
108 texindex elisp.tp; \
109 else \
110 texindex elisp.??; \
111 fi
112 $(texinputdir) $(TEX) $(srcdir)/elisp.texi
113
114 index.texi:
115 if [ a${permuted_index} != a ]; \
116 then \
117 ln -s $(srcdir)/index.perm index.texi || ln $(srcdir)/index.perm index.texi; \
118 else \
119 ln -s $(srcdir)/index.unperm index.texi || ln $(srcdir)/index.unperm index.texi; \
120 fi
121
122 install: elisp
123 $(srcdir)/mkinstalldirs $(infodir)
124 cp elisp elisp-* $(infodir)
125 ${INSTALL_INFO} --info-dir=${infodir} ${infodir}/elisp
126
127 installall: install
128 install -c $(srcdir)/../man/texinfo.tex $(texmacrodir)
129
130 clean:
131 rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \
132 *.vr *.vrs *.pg *.pgs *.ky *.kys
133 rm -f make.out core
134 rm -f index.texi
135
136 maintainer-clean: clean
137 rm -f elisp elisp-* elisp.dvi elisp.oaux
138
139 dist: elisp elisp.dvi
140 -rm -rf temp
141 -mkdir temp
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] \
147 temp/$(manual)
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
152 -rm -rf temp