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 | ||
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 | |
f7a31f11 | 35 | MAKEINFO = makeinfo --force -I $(emacsdir) |
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 GM |
102 | dvi: elisp.dvi |
103 | pdf: elisp.pdf | |
c12e4a81 | 104 | ps: elisp.ps |
0264072d | 105 | |
abd40fb4 GM |
106 | $(infodir)/elisp: $(srcs) |
107 | $(mkinfodir) | |
c1dc72b3 | 108 | $(MAKEINFO) -I. -I$(texinfodir) $< -o $@ |
b8d4c8d0 GM |
109 | |
110 | elisp.dvi: $(srcs) | |
eef3ab94 | 111 | $(TEXI2DVI) -I $(srcdir) -I $(texinfodir) $< |
b8d4c8d0 | 112 | |
c12e4a81 GM |
113 | elisp.ps: elisp.dvi |
114 | $(DVIPS) -o $@ $< | |
115 | ||
64fbeb16 | 116 | elisp.pdf: $(srcs) |
eef3ab94 | 117 | $(TEXI2PDF) -I $(srcdir) -I $(texinfodir) $< |
64fbeb16 | 118 | |
4c83f6e1 GM |
119 | .PHONY: mostlyclean clean distclean maintainer-clean infoclean |
120 | ||
121 | ## [12] stuff is from two-volume.make. | |
122 | mostlyclean: | |
123 | rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \ | |
124 | *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs | |
125 | rm -f elisp[12]* | |
0264072d | 126 | |
4c83f6e1 | 127 | clean: mostlyclean |
c12e4a81 | 128 | rm -f elisp.dvi elisp.pdf elisp.ps vol[12].pdf |
17ca7950 | 129 | rm -f emacs-lispref-${version}.tar* |
b8d4c8d0 GM |
130 | |
131 | distclean: clean | |
132 | ||
4c83f6e1 | 133 | infoclean: |
c1dc72b3 | 134 | -cd $(infodir) && rm -f elisp elisp-[1-9] elisp-[1-9][0-9] |
0264072d | 135 | |
4c83f6e1 GM |
136 | maintainer-clean: distclean infoclean |
137 | ||
ea274122 GM |
138 | .PHONY: dist |
139 | ||
4c83f6e1 GM |
140 | ## Note this excludes the two-volume stuff. |
141 | dist: | |
17ca7950 GM |
142 | rm -rf emacs-lispref-${version} |
143 | mkdir emacs-lispref-${version} | |
4c83f6e1 | 144 | cp ${srcdir}/*.texi ${texinfodir}/texinfo.tex \ |
208deadc GM |
145 | $(emacsdir)/emacsver.texi ${srcdir}/ChangeLog* \ |
146 | ${srcdir}/README emacs-lispref-${version}/ | |
4393405b GM |
147 | sed -e 's/@sr[c]dir@/./' -e 's/^\(texinfodir *=\).*/\1 ./' \ |
148 | -e 's/^\(emacsdir *=\).*/\1 ./' \ | |
149 | -e 's/^\(infodir *=\).*/\1 ./' -e 's/^\(clean:.*\)/\1 infoclean/' \ | |
17ca7950 GM |
150 | -e "s/@ver[s]ion@/${version}/" \ |
151 | ${srcdir}/Makefile.in > emacs-lispref-${version}/Makefile | |
152 | tar -cf emacs-lispref-${version}.tar emacs-lispref-${version} | |
153 | rm -rf emacs-lispref-${version} | |
4c83f6e1 | 154 | |
0264072d | 155 | ### Makefile ends here |