Mercurial > emacs
annotate doc/lispref/Makefile.in @ 112411:6178cf733e6f
Merge from mainline.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Fri, 21 Jan 2011 21:52:29 -0800 |
parents | 417b1e4d63cd |
children | 76fa839f455e |
rev | line source |
---|---|
84044 | 1 # Makefile for the GNU Emacs Lisp Reference Manual. |
2 | |
3 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, | |
112218
376148b31b5e
Add 2011 to FSF/AIST copyright years.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
4 # 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
87649 | 5 # Free Software Foundation, Inc. |
84044 | 6 |
7 # This file is part of GNU Emacs. | |
8 | |
95035
fde6f792a832
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
87649
diff
changeset
|
9 # GNU Emacs is free software: you can redistribute it and/or modify |
84044 | 10 # it under the terms of the GNU General Public License as published by |
95035
fde6f792a832
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
87649
diff
changeset
|
11 # the Free Software Foundation, either version 3 of the License, or |
fde6f792a832
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
87649
diff
changeset
|
12 # (at your option) any later version. |
84044 | 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 | |
95035
fde6f792a832
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
87649
diff
changeset
|
20 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
fde6f792a832
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
87649
diff
changeset
|
21 |
110781
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110751
diff
changeset
|
22 SHELL = /bin/sh |
84044 | 23 |
24 # Standard configure variables. | |
25 srcdir = @srcdir@ | |
26 | |
110794
bacdf2d96735
Include version number in doc `make dist' tarfiles.
Glenn Morris <rgm@gnu.org>
parents:
110786
diff
changeset
|
27 version=@version@ |
84044 | 28 |
110894
39eed86814a2
Replace use of VPATH in most doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110893
diff
changeset
|
29 infodir = $(srcdir)/../../info |
103809
e45ed3bf8f64
(texinfodir): Rename from usermanualdir, and update.
Glenn Morris <rgm@gnu.org>
parents:
100974
diff
changeset
|
30 # Directory with the (customized) texinfo.tex file. |
e45ed3bf8f64
(texinfodir): Rename from usermanualdir, and update.
Glenn Morris <rgm@gnu.org>
parents:
100974
diff
changeset
|
31 texinfodir = $(srcdir)/../misc |
110863
f537cb2035e9
Set the version number in the texinfo manuals using configure.
Glenn Morris <rgm@gnu.org>
parents:
110861
diff
changeset
|
32 # Directory with emacsver.texi. |
f537cb2035e9
Set the version number in the texinfo manuals using configure.
Glenn Morris <rgm@gnu.org>
parents:
110861
diff
changeset
|
33 emacsdir = $(srcdir)/../emacs |
84044 | 34 |
110913
1ba912b1a63c
Add explicit -I$srcdir to makeinfo in some doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110912
diff
changeset
|
35 MAKEINFO = makeinfo --force -I $(emacsdir) -I $(srcdir) |
84044 | 36 TEXI2DVI = texi2dvi |
103867 | 37 TEXI2PDF = texi2pdf |
110911
6d7021474f2e
Add ps rules for some doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110894
diff
changeset
|
38 DVIPS = dvips |
84044 | 39 |
40 # List of all the texinfo files in the manual: | |
41 | |
42 srcs = \ | |
110887
951b5214e939
Use $< in some doc/*/Makefile rules.
Glenn Morris <rgm@gnu.org>
parents:
110886
diff
changeset
|
43 $(srcdir)/elisp.texi \ |
110866
4b97fee97310
Add doc/ dependencies on emacsver.texi.
Glenn Morris <rgm@gnu.org>
parents:
110863
diff
changeset
|
44 $(emacsdir)/emacsver.texi \ |
84044 | 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 \ | |
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 | |
110894
39eed86814a2
Replace use of VPATH in most doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110893
diff
changeset
|
97 mkinfodir = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir} |
84044 | 98 |
110911
6d7021474f2e
Add ps rules for some doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110894
diff
changeset
|
99 .PHONY: info dvi pdf ps |
84044 | 100 |
101 info: $(infodir)/elisp | |
110750
cad6890bb825
Minor doc Makefile.in clean-up.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
102 dvi: elisp.dvi |
110912
2bfb6bf8a383
Add html targets for some doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110911
diff
changeset
|
103 html: elisp.html |
110750
cad6890bb825
Minor doc Makefile.in clean-up.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
104 pdf: elisp.pdf |
110911
6d7021474f2e
Add ps rules for some doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110894
diff
changeset
|
105 ps: elisp.ps |
84044 | 106 |
107 $(infodir)/elisp: $(srcs) | |
110882
b8bcd2311f78
Avoid having a directory as a prerequisite in doc Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110866
diff
changeset
|
108 $(mkinfodir) |
110912
2bfb6bf8a383
Add html targets for some doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110911
diff
changeset
|
109 $(MAKEINFO) -o $@ $< |
84044 | 110 |
111 elisp.dvi: $(srcs) | |
111216
5d7d30110595
doc/Makefile fixes related to inclusion of emacsver.texi.
Glenn Morris <rgm@gnu.org>
parents:
110913
diff
changeset
|
112 $(TEXI2DVI) -I $(srcdir) -I $(texinfodir) -I $(emacsdir) $< |
84044 | 113 |
110912
2bfb6bf8a383
Add html targets for some doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110911
diff
changeset
|
114 elisp.html: $(srcs) |
2bfb6bf8a383
Add html targets for some doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110911
diff
changeset
|
115 $(MAKEINFO) --html -o $@ $< |
2bfb6bf8a383
Add html targets for some doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110911
diff
changeset
|
116 |
110911
6d7021474f2e
Add ps rules for some doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110894
diff
changeset
|
117 elisp.ps: elisp.dvi |
6d7021474f2e
Add ps rules for some doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110894
diff
changeset
|
118 $(DVIPS) -o $@ $< |
84044 | 119 |
103867 | 120 elisp.pdf: $(srcs) |
111216
5d7d30110595
doc/Makefile fixes related to inclusion of emacsver.texi.
Glenn Morris <rgm@gnu.org>
parents:
110913
diff
changeset
|
121 $(TEXI2PDF) -I $(srcdir) -I $(texinfodir) -I $(emacsdir) $< |
103867 | 122 |
110781
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110751
diff
changeset
|
123 .PHONY: mostlyclean clean distclean maintainer-clean infoclean |
103867 | 124 |
110781
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110751
diff
changeset
|
125 ## [12] stuff is from two-volume.make. |
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110751
diff
changeset
|
126 mostlyclean: |
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110751
diff
changeset
|
127 rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \ |
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110751
diff
changeset
|
128 *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs |
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110751
diff
changeset
|
129 rm -f elisp[12]* |
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110751
diff
changeset
|
130 |
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110751
diff
changeset
|
131 clean: mostlyclean |
110911
6d7021474f2e
Add ps rules for some doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110894
diff
changeset
|
132 rm -f elisp.dvi elisp.pdf elisp.ps vol[12].pdf |
110912
2bfb6bf8a383
Add html targets for some doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110911
diff
changeset
|
133 rm -rf elisp.html |
110794
bacdf2d96735
Include version number in doc `make dist' tarfiles.
Glenn Morris <rgm@gnu.org>
parents:
110786
diff
changeset
|
134 rm -f emacs-lispref-${version}.tar* |
84044 | 135 |
136 distclean: clean | |
137 | |
110781
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110751
diff
changeset
|
138 infoclean: |
110894
39eed86814a2
Replace use of VPATH in most doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110893
diff
changeset
|
139 -cd $(infodir) && rm -f elisp elisp-[1-9] elisp-[1-9][0-9] |
110750
cad6890bb825
Minor doc Makefile.in clean-up.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
140 |
110781
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110751
diff
changeset
|
141 maintainer-clean: distclean infoclean |
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110751
diff
changeset
|
142 |
110861
ca28093784c4
Mark some doc/ rules as PHONY.
Glenn Morris <rgm@gnu.org>
parents:
110794
diff
changeset
|
143 .PHONY: dist |
ca28093784c4
Mark some doc/ rules as PHONY.
Glenn Morris <rgm@gnu.org>
parents:
110794
diff
changeset
|
144 |
110781
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110751
diff
changeset
|
145 ## Note this excludes the two-volume stuff. |
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110751
diff
changeset
|
146 dist: |
110794
bacdf2d96735
Include version number in doc `make dist' tarfiles.
Glenn Morris <rgm@gnu.org>
parents:
110786
diff
changeset
|
147 rm -rf emacs-lispref-${version} |
bacdf2d96735
Include version number in doc `make dist' tarfiles.
Glenn Morris <rgm@gnu.org>
parents:
110786
diff
changeset
|
148 mkdir emacs-lispref-${version} |
110781
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110751
diff
changeset
|
149 cp ${srcdir}/*.texi ${texinfodir}/texinfo.tex \ |
110892
b9b29f64a71c
* doc/lispref/Makefile.in (dist): Also copy emacsver.texi, and edit $emacsdir.
Glenn Morris <rgm@gnu.org>
parents:
110891
diff
changeset
|
150 $(emacsdir)/emacsver.texi ${srcdir}/ChangeLog* \ |
b9b29f64a71c
* doc/lispref/Makefile.in (dist): Also copy emacsver.texi, and edit $emacsdir.
Glenn Morris <rgm@gnu.org>
parents:
110891
diff
changeset
|
151 ${srcdir}/README emacs-lispref-${version}/ |
110893
485f4f9f69bd
Anchor regexps in doc/ `make dist' rules.
Glenn Morris <rgm@gnu.org>
parents:
110892
diff
changeset
|
152 sed -e 's/@sr[c]dir@/./' -e 's/^\(texinfodir *=\).*/\1 ./' \ |
485f4f9f69bd
Anchor regexps in doc/ `make dist' rules.
Glenn Morris <rgm@gnu.org>
parents:
110892
diff
changeset
|
153 -e 's/^\(emacsdir *=\).*/\1 ./' \ |
485f4f9f69bd
Anchor regexps in doc/ `make dist' rules.
Glenn Morris <rgm@gnu.org>
parents:
110892
diff
changeset
|
154 -e 's/^\(infodir *=\).*/\1 ./' -e 's/^\(clean:.*\)/\1 infoclean/' \ |
110794
bacdf2d96735
Include version number in doc `make dist' tarfiles.
Glenn Morris <rgm@gnu.org>
parents:
110786
diff
changeset
|
155 -e "s/@ver[s]ion@/${version}/" \ |
bacdf2d96735
Include version number in doc `make dist' tarfiles.
Glenn Morris <rgm@gnu.org>
parents:
110786
diff
changeset
|
156 ${srcdir}/Makefile.in > emacs-lispref-${version}/Makefile |
bacdf2d96735
Include version number in doc `make dist' tarfiles.
Glenn Morris <rgm@gnu.org>
parents:
110786
diff
changeset
|
157 tar -cf emacs-lispref-${version}.tar emacs-lispref-${version} |
bacdf2d96735
Include version number in doc `make dist' tarfiles.
Glenn Morris <rgm@gnu.org>
parents:
110786
diff
changeset
|
158 rm -rf emacs-lispref-${version} |
110781
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110751
diff
changeset
|
159 |
110750
cad6890bb825
Minor doc Makefile.in clean-up.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
160 ### Makefile ends here |