Commit | Line | Data |
---|---|---|
b8d4c8d0 GM |
1 | # Makefile for the GNU Emacs Lisp Reference Manual. |
2 | ||
3 | # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, | |
114f9c96 | 4 | # 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 |
57ebf0be | 5 | # Free Software Foundation, Inc. |
b8d4c8d0 GM |
6 | |
7 | # This file is part of GNU Emacs. | |
8 | ||
352c8b4a | 9 | # GNU Emacs is free software: you can redistribute it and/or modify |
b8d4c8d0 | 10 | # it under the terms of the GNU General Public License as published by |
352c8b4a GM |
11 | # the Free Software Foundation, either version 3 of the License, or |
12 | # (at your option) any later version. | |
b8d4c8d0 GM |
13 | |
14 | # GNU Emacs is distributed in the hope that it will be useful, | |
15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | # GNU General Public License for more details. | |
18 | ||
19 | # You should have received a copy of the GNU General Public License | |
352c8b4a GM |
20 | # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
21 | ||
4c83f6e1 | 22 | SHELL = /bin/sh |
b8d4c8d0 GM |
23 | |
24 | # Standard configure variables. | |
25 | srcdir = @srcdir@ | |
26 | ||
27 | # Tell make where to find source files; this is needed for the makefiles. | |
28 | VPATH=@srcdir@ | |
29 | ||
17ca7950 GM |
30 | version=@version@ |
31 | ||
d374a422 | 32 | infodir = ../../info |
aa514a98 GM |
33 | # Directory with the (customized) texinfo.tex file. |
34 | texinfodir = $(srcdir)/../misc | |
f7a31f11 GM |
35 | # Directory with emacsver.texi. |
36 | emacsdir = $(srcdir)/../emacs | |
b8d4c8d0 | 37 | |
f7a31f11 | 38 | MAKEINFO = makeinfo --force -I $(emacsdir) |
b8d4c8d0 | 39 | TEXI2DVI = texi2dvi |
64fbeb16 | 40 | TEXI2PDF = texi2pdf |
b8d4c8d0 | 41 | |
b8d4c8d0 GM |
42 | # List of all the texinfo files in the manual: |
43 | ||
44 | srcs = \ | |
b13254e7 | 45 | $(emacsdir)/emacsver.texi \ |
b8d4c8d0 GM |
46 | $(srcdir)/abbrevs.texi \ |
47 | $(srcdir)/advice.texi \ | |
48 | $(srcdir)/anti.texi \ | |
49 | $(srcdir)/back.texi \ | |
50 | $(srcdir)/backups.texi \ | |
51 | $(srcdir)/buffers.texi \ | |
52 | $(srcdir)/commands.texi \ | |
53 | $(srcdir)/compile.texi \ | |
54 | $(srcdir)/control.texi \ | |
55 | $(srcdir)/customize.texi \ | |
56 | $(srcdir)/debugging.texi \ | |
57 | $(srcdir)/display.texi \ | |
58 | $(srcdir)/edebug.texi \ | |
59 | $(srcdir)/elisp.texi \ | |
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 \ | |
83 | $(srcdir)/positions.texi \ | |
84 | $(srcdir)/processes.texi \ | |
85 | $(srcdir)/searching.texi \ | |
86 | $(srcdir)/sequences.texi \ | |
87 | $(srcdir)/streams.texi \ | |
88 | $(srcdir)/strings.texi \ | |
89 | $(srcdir)/symbols.texi \ | |
90 | $(srcdir)/syntax.texi \ | |
91 | $(srcdir)/text.texi \ | |
92 | $(srcdir)/tips.texi \ | |
93 | $(srcdir)/variables.texi \ | |
94 | $(srcdir)/windows.texi \ | |
95 | $(srcdir)/index.texi \ | |
96 | $(srcdir)/gpl.texi \ | |
97 | $(srcdir)/doclicense.texi | |
98 | ||
abd40fb4 GM |
99 | mkinfodir = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir} |
100 | ||
ea274122 GM |
101 | .PHONY: info dvi pdf |
102 | ||
b8d4c8d0 GM |
103 | # The info file is named `elisp'. |
104 | info: $(infodir)/elisp | |
0264072d GM |
105 | dvi: elisp.dvi |
106 | pdf: elisp.pdf | |
107 | ||
abd40fb4 GM |
108 | $(infodir)/elisp: $(srcs) |
109 | $(mkinfodir) | |
8cce34d0 | 110 | cd $(srcdir); $(MAKEINFO) -I. -I$(texinfodir) elisp.texi -o $@ |
b8d4c8d0 GM |
111 | |
112 | elisp.dvi: $(srcs) | |
aa514a98 | 113 | $(TEXI2DVI) -I $(srcdir) -I $(texinfodir) $(srcdir)/elisp.texi |
b8d4c8d0 | 114 | |
64fbeb16 GM |
115 | elisp.pdf: $(srcs) |
116 | $(TEXI2PDF) -I $(srcdir) -I $(texinfodir) $(srcdir)/elisp.texi | |
117 | ||
4c83f6e1 GM |
118 | .PHONY: mostlyclean clean distclean maintainer-clean infoclean |
119 | ||
120 | ## [12] stuff is from two-volume.make. | |
121 | mostlyclean: | |
122 | rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \ | |
123 | *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs | |
124 | rm -f elisp[12]* | |
0264072d | 125 | |
4c83f6e1 GM |
126 | clean: mostlyclean |
127 | rm -f elisp.dvi elisp.pdf vol[12].pdf | |
17ca7950 | 128 | rm -f emacs-lispref-${version}.tar* |
b8d4c8d0 GM |
129 | |
130 | distclean: clean | |
131 | ||
4c83f6e1 | 132 | infoclean: |
aa9db089 | 133 | -cd $(srcdir) && cd $(infodir) && rm -f elisp elisp-[1-9] elisp-[1-9][0-9] |
0264072d | 134 | |
4c83f6e1 GM |
135 | maintainer-clean: distclean infoclean |
136 | ||
ea274122 GM |
137 | .PHONY: dist |
138 | ||
4c83f6e1 GM |
139 | ## Note this excludes the two-volume stuff. |
140 | dist: | |
17ca7950 GM |
141 | rm -rf emacs-lispref-${version} |
142 | mkdir emacs-lispref-${version} | |
4c83f6e1 | 143 | cp ${srcdir}/*.texi ${texinfodir}/texinfo.tex \ |
17ca7950 | 144 | ${srcdir}/ChangeLog* ${srcdir}/README emacs-lispref-${version}/ |
4c83f6e1 GM |
145 | sed -e 's/@sr[c]dir@/./' -e 's/\(texinfodir *=\).*/\1 ./' \ |
146 | -e 's/\(infodir *=\).*/\1 ./' -e 's/^\(clean:.*\)/\1 infoclean/' \ | |
17ca7950 GM |
147 | -e "s/@ver[s]ion@/${version}/" \ |
148 | ${srcdir}/Makefile.in > emacs-lispref-${version}/Makefile | |
f7a31f11 GM |
149 | sed -e "s/@ver[s]ion@/${version}/" \ |
150 | ${emacsdir}/emacsver.texi.in > emacs-lispref-${version}/emacsver.texi | |
17ca7950 GM |
151 | tar -cf emacs-lispref-${version}.tar emacs-lispref-${version} |
152 | rm -rf emacs-lispref-${version} | |
4c83f6e1 | 153 | |
0264072d | 154 | ### Makefile ends here |