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, | |
5df4f04c | 4 | # 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
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 | ||
17ca7950 GM |
27 | version=@version@ |
28 | ||
c1dc72b3 | 29 | infodir = $(srcdir)/../../info |
aa514a98 GM |
30 | # Directory with the (customized) texinfo.tex file. |
31 | texinfodir = $(srcdir)/../misc | |
f7a31f11 GM |
32 | # Directory with emacsver.texi. |
33 | emacsdir = $(srcdir)/../emacs | |
b8d4c8d0 | 34 | |
df187c62 | 35 | MAKEINFO = makeinfo --force -I $(emacsdir) -I $(srcdir) |
b8d4c8d0 | 36 | TEXI2DVI = texi2dvi |
64fbeb16 | 37 | TEXI2PDF = texi2pdf |
c12e4a81 | 38 | DVIPS = dvips |
b8d4c8d0 | 39 | |
b8d4c8d0 GM |
40 | # List of all the texinfo files in the manual: |
41 | ||
42 | srcs = \ | |
eef3ab94 | 43 | $(srcdir)/elisp.texi \ |
b13254e7 | 44 | $(emacsdir)/emacsver.texi \ |
b8d4c8d0 GM |
45 | $(srcdir)/abbrevs.texi \ |
46 | $(srcdir)/advice.texi \ | |
47 | $(srcdir)/anti.texi \ | |
48 | $(srcdir)/back.texi \ | |
49 | $(srcdir)/backups.texi \ | |
50 | $(srcdir)/buffers.texi \ | |
51 | $(srcdir)/commands.texi \ | |
52 | $(srcdir)/compile.texi \ | |
53 | $(srcdir)/control.texi \ | |
54 | $(srcdir)/customize.texi \ | |
55 | $(srcdir)/debugging.texi \ | |
56 | $(srcdir)/display.texi \ | |
57 | $(srcdir)/edebug.texi \ | |
b8d4c8d0 GM |
58 | $(srcdir)/errors.texi \ |
59 | $(srcdir)/eval.texi \ | |
60 | $(srcdir)/files.texi \ | |
61 | $(srcdir)/frames.texi \ | |
62 | $(srcdir)/functions.texi \ | |
63 | $(srcdir)/hash.texi \ | |
64 | $(srcdir)/help.texi \ | |
65 | $(srcdir)/hooks.texi \ | |
66 | $(srcdir)/internals.texi \ | |
67 | $(srcdir)/intro.texi \ | |
68 | $(srcdir)/keymaps.texi \ | |
69 | $(srcdir)/lists.texi \ | |
70 | $(srcdir)/loading.texi \ | |
71 | $(srcdir)/locals.texi \ | |
72 | $(srcdir)/macros.texi \ | |
73 | $(srcdir)/maps.texi \ | |
74 | $(srcdir)/markers.texi \ | |
75 | $(srcdir)/minibuf.texi \ | |
76 | $(srcdir)/modes.texi \ | |
77 | $(srcdir)/nonascii.texi \ | |
78 | $(srcdir)/numbers.texi \ | |
79 | $(srcdir)/objects.texi \ | |
80 | $(srcdir)/os.texi \ | |
81 | $(srcdir)/positions.texi \ | |
82 | $(srcdir)/processes.texi \ | |
83 | $(srcdir)/searching.texi \ | |
84 | $(srcdir)/sequences.texi \ | |
85 | $(srcdir)/streams.texi \ | |
86 | $(srcdir)/strings.texi \ | |
87 | $(srcdir)/symbols.texi \ | |
88 | $(srcdir)/syntax.texi \ | |
89 | $(srcdir)/text.texi \ | |
90 | $(srcdir)/tips.texi \ | |
91 | $(srcdir)/variables.texi \ | |
92 | $(srcdir)/windows.texi \ | |
93 | $(srcdir)/index.texi \ | |
94 | $(srcdir)/gpl.texi \ | |
95 | $(srcdir)/doclicense.texi | |
96 | ||
c1dc72b3 | 97 | mkinfodir = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir} |
abd40fb4 | 98 | |
c12e4a81 | 99 | .PHONY: info dvi pdf ps |
ea274122 | 100 | |
b8d4c8d0 | 101 | info: $(infodir)/elisp |
0264072d | 102 | dvi: elisp.dvi |
234db610 | 103 | html: elisp.html |
0264072d | 104 | pdf: elisp.pdf |
c12e4a81 | 105 | ps: elisp.ps |
0264072d | 106 | |
abd40fb4 GM |
107 | $(infodir)/elisp: $(srcs) |
108 | $(mkinfodir) | |
234db610 | 109 | $(MAKEINFO) -o $@ $< |
b8d4c8d0 GM |
110 | |
111 | elisp.dvi: $(srcs) | |
8289f37b | 112 | $(TEXI2DVI) -I $(srcdir) -I $(texinfodir) -I $(emacsdir) $< |
b8d4c8d0 | 113 | |
234db610 GM |
114 | elisp.html: $(srcs) |
115 | $(MAKEINFO) --html -o $@ $< | |
116 | ||
c12e4a81 GM |
117 | elisp.ps: elisp.dvi |
118 | $(DVIPS) -o $@ $< | |
119 | ||
64fbeb16 | 120 | elisp.pdf: $(srcs) |
8289f37b | 121 | $(TEXI2PDF) -I $(srcdir) -I $(texinfodir) -I $(emacsdir) $< |
64fbeb16 | 122 | |
4c83f6e1 GM |
123 | .PHONY: mostlyclean clean distclean maintainer-clean infoclean |
124 | ||
125 | ## [12] stuff is from two-volume.make. | |
126 | mostlyclean: | |
127 | rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \ | |
128 | *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs | |
129 | rm -f elisp[12]* | |
0264072d | 130 | |
4c83f6e1 | 131 | clean: mostlyclean |
c12e4a81 | 132 | rm -f elisp.dvi elisp.pdf elisp.ps vol[12].pdf |
234db610 | 133 | rm -rf elisp.html |
17ca7950 | 134 | rm -f emacs-lispref-${version}.tar* |
b8d4c8d0 GM |
135 | |
136 | distclean: clean | |
137 | ||
4c83f6e1 | 138 | infoclean: |
c1dc72b3 | 139 | -cd $(infodir) && rm -f elisp elisp-[1-9] elisp-[1-9][0-9] |
0264072d | 140 | |
4c83f6e1 GM |
141 | maintainer-clean: distclean infoclean |
142 | ||
ea274122 GM |
143 | .PHONY: dist |
144 | ||
4c83f6e1 GM |
145 | ## Note this excludes the two-volume stuff. |
146 | dist: | |
17ca7950 GM |
147 | rm -rf emacs-lispref-${version} |
148 | mkdir emacs-lispref-${version} | |
4c83f6e1 | 149 | cp ${srcdir}/*.texi ${texinfodir}/texinfo.tex \ |
208deadc GM |
150 | $(emacsdir)/emacsver.texi ${srcdir}/ChangeLog* \ |
151 | ${srcdir}/README emacs-lispref-${version}/ | |
4393405b GM |
152 | sed -e 's/@sr[c]dir@/./' -e 's/^\(texinfodir *=\).*/\1 ./' \ |
153 | -e 's/^\(emacsdir *=\).*/\1 ./' \ | |
154 | -e 's/^\(infodir *=\).*/\1 ./' -e 's/^\(clean:.*\)/\1 infoclean/' \ | |
17ca7950 GM |
155 | -e "s/@ver[s]ion@/${version}/" \ |
156 | ${srcdir}/Makefile.in > emacs-lispref-${version}/Makefile | |
157 | tar -cf emacs-lispref-${version}.tar emacs-lispref-${version} | |
158 | rm -rf emacs-lispref-${version} | |
4c83f6e1 | 159 | |
0264072d | 160 | ### Makefile ends here |