Commit | Line | Data |
---|---|---|
b8d4c8d0 GM |
1 | # Makefile for the GNU Emacs Lisp Reference Manual. |
2 | ||
acaf905b | 3 | # Copyright (C) 1990-1996, 1998-2012 Free Software Foundation, Inc. |
b8d4c8d0 GM |
4 | |
5 | # This file is part of GNU Emacs. | |
6 | ||
352c8b4a | 7 | # GNU Emacs is free software: you can redistribute it and/or modify |
b8d4c8d0 | 8 | # it under the terms of the GNU General Public License as published by |
352c8b4a GM |
9 | # the Free Software Foundation, either version 3 of the License, or |
10 | # (at your option) any later version. | |
b8d4c8d0 GM |
11 | |
12 | # GNU Emacs is distributed in the hope that it will be useful, | |
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | # GNU General Public License for more details. | |
16 | ||
17 | # You should have received a copy of the GNU General Public License | |
352c8b4a GM |
18 | # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
19 | ||
4c83f6e1 | 20 | SHELL = /bin/sh |
b8d4c8d0 GM |
21 | |
22 | # Standard configure variables. | |
23 | srcdir = @srcdir@ | |
24 | ||
17ca7950 GM |
25 | version=@version@ |
26 | ||
c1dc72b3 | 27 | infodir = $(srcdir)/../../info |
aa514a98 GM |
28 | # Directory with the (customized) texinfo.tex file. |
29 | texinfodir = $(srcdir)/../misc | |
f7a31f11 GM |
30 | # Directory with emacsver.texi. |
31 | emacsdir = $(srcdir)/../emacs | |
b8d4c8d0 | 32 | |
a8e1e9ee | 33 | MAKEINFO = @MAKEINFO@ |
6446548e | 34 | MAKEINFO_OPTS = --force --enable-encoding -I $(emacsdir) -I $(srcdir) |
b8d4c8d0 | 35 | TEXI2DVI = texi2dvi |
64fbeb16 | 36 | TEXI2PDF = texi2pdf |
c12e4a81 | 37 | DVIPS = dvips |
b8d4c8d0 | 38 | |
a8e1e9ee WL |
39 | ENVADD = TEXINPUTS="$(srcdir):$(texinfodir):$(TEXINPUTS)" \ |
40 | MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)" | |
41 | ||
b8d4c8d0 GM |
42 | # List of all the texinfo files in the manual: |
43 | ||
44 | srcs = \ | |
eef3ab94 | 45 | $(srcdir)/elisp.texi \ |
b13254e7 | 46 | $(emacsdir)/emacsver.texi \ |
b8d4c8d0 GM |
47 | $(srcdir)/abbrevs.texi \ |
48 | $(srcdir)/advice.texi \ | |
49 | $(srcdir)/anti.texi \ | |
50 | $(srcdir)/back.texi \ | |
51 | $(srcdir)/backups.texi \ | |
52 | $(srcdir)/buffers.texi \ | |
53 | $(srcdir)/commands.texi \ | |
54 | $(srcdir)/compile.texi \ | |
55 | $(srcdir)/control.texi \ | |
56 | $(srcdir)/customize.texi \ | |
57 | $(srcdir)/debugging.texi \ | |
58 | $(srcdir)/display.texi \ | |
59 | $(srcdir)/edebug.texi \ | |
b8d4c8d0 GM |
60 | $(srcdir)/errors.texi \ |
61 | $(srcdir)/eval.texi \ | |
62 | $(srcdir)/files.texi \ | |
63 | $(srcdir)/frames.texi \ | |
64 | $(srcdir)/functions.texi \ | |
65 | $(srcdir)/hash.texi \ | |
66 | $(srcdir)/help.texi \ | |
67 | $(srcdir)/hooks.texi \ | |
68 | $(srcdir)/internals.texi \ | |
69 | $(srcdir)/intro.texi \ | |
70 | $(srcdir)/keymaps.texi \ | |
71 | $(srcdir)/lists.texi \ | |
72 | $(srcdir)/loading.texi \ | |
73 | $(srcdir)/locals.texi \ | |
74 | $(srcdir)/macros.texi \ | |
75 | $(srcdir)/maps.texi \ | |
76 | $(srcdir)/markers.texi \ | |
77 | $(srcdir)/minibuf.texi \ | |
78 | $(srcdir)/modes.texi \ | |
79 | $(srcdir)/nonascii.texi \ | |
80 | $(srcdir)/numbers.texi \ | |
81 | $(srcdir)/objects.texi \ | |
82 | $(srcdir)/os.texi \ | |
555e9b5c | 83 | $(srcdir)/package.texi \ |
b8d4c8d0 GM |
84 | $(srcdir)/positions.texi \ |
85 | $(srcdir)/processes.texi \ | |
86 | $(srcdir)/searching.texi \ | |
87 | $(srcdir)/sequences.texi \ | |
88 | $(srcdir)/streams.texi \ | |
89 | $(srcdir)/strings.texi \ | |
90 | $(srcdir)/symbols.texi \ | |
91 | $(srcdir)/syntax.texi \ | |
92 | $(srcdir)/text.texi \ | |
93 | $(srcdir)/tips.texi \ | |
94 | $(srcdir)/variables.texi \ | |
95 | $(srcdir)/windows.texi \ | |
96 | $(srcdir)/index.texi \ | |
97 | $(srcdir)/gpl.texi \ | |
98 | $(srcdir)/doclicense.texi | |
99 | ||
c1dc72b3 | 100 | mkinfodir = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir} |
abd40fb4 | 101 | |
c12e4a81 | 102 | .PHONY: info dvi pdf ps |
ea274122 | 103 | |
b8d4c8d0 | 104 | info: $(infodir)/elisp |
0264072d | 105 | dvi: elisp.dvi |
234db610 | 106 | html: elisp.html |
0264072d | 107 | pdf: elisp.pdf |
c12e4a81 | 108 | ps: elisp.ps |
0264072d | 109 | |
abd40fb4 GM |
110 | $(infodir)/elisp: $(srcs) |
111 | $(mkinfodir) | |
a8e1e9ee | 112 | $(MAKEINFO) $(MAKEINFO_OPTS) -o $@ $< |
b8d4c8d0 GM |
113 | |
114 | elisp.dvi: $(srcs) | |
a8e1e9ee | 115 | $(ENVADD) $(TEXI2DVI) $< |
b8d4c8d0 | 116 | |
234db610 | 117 | elisp.html: $(srcs) |
a8e1e9ee | 118 | $(MAKEINFO) $(MAKEINFO_OPTS) --html -o $@ $< |
234db610 | 119 | |
c12e4a81 GM |
120 | elisp.ps: elisp.dvi |
121 | $(DVIPS) -o $@ $< | |
122 | ||
64fbeb16 | 123 | elisp.pdf: $(srcs) |
a8e1e9ee | 124 | $(ENVADD) $(TEXI2PDF) $< |
64fbeb16 | 125 | |
4c83f6e1 GM |
126 | .PHONY: mostlyclean clean distclean maintainer-clean infoclean |
127 | ||
128 | ## [12] stuff is from two-volume.make. | |
129 | mostlyclean: | |
130 | rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \ | |
131 | *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs | |
132 | rm -f elisp[12]* | |
0264072d | 133 | |
4c83f6e1 | 134 | clean: mostlyclean |
c12e4a81 | 135 | rm -f elisp.dvi elisp.pdf elisp.ps vol[12].pdf |
234db610 | 136 | rm -rf elisp.html |
17ca7950 | 137 | rm -f emacs-lispref-${version}.tar* |
b8d4c8d0 GM |
138 | |
139 | distclean: clean | |
140 | ||
4c83f6e1 | 141 | infoclean: |
c1dc72b3 | 142 | -cd $(infodir) && rm -f elisp elisp-[1-9] elisp-[1-9][0-9] |
0264072d | 143 | |
4c83f6e1 GM |
144 | maintainer-clean: distclean infoclean |
145 | ||
ea274122 GM |
146 | .PHONY: dist |
147 | ||
4c83f6e1 GM |
148 | ## Note this excludes the two-volume stuff. |
149 | dist: | |
17ca7950 GM |
150 | rm -rf emacs-lispref-${version} |
151 | mkdir emacs-lispref-${version} | |
4c83f6e1 | 152 | cp ${srcdir}/*.texi ${texinfodir}/texinfo.tex \ |
208deadc GM |
153 | $(emacsdir)/emacsver.texi ${srcdir}/ChangeLog* \ |
154 | ${srcdir}/README emacs-lispref-${version}/ | |
4393405b GM |
155 | sed -e 's/@sr[c]dir@/./' -e 's/^\(texinfodir *=\).*/\1 ./' \ |
156 | -e 's/^\(emacsdir *=\).*/\1 ./' \ | |
157 | -e 's/^\(infodir *=\).*/\1 ./' -e 's/^\(clean:.*\)/\1 infoclean/' \ | |
17ca7950 GM |
158 | -e "s/@ver[s]ion@/${version}/" \ |
159 | ${srcdir}/Makefile.in > emacs-lispref-${version}/Makefile | |
160 | tar -cf emacs-lispref-${version}.tar emacs-lispref-${version} | |
161 | rm -rf emacs-lispref-${version} | |
4c83f6e1 | 162 | |
0264072d | 163 | ### Makefile ends here |