aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorGlenn Morris2010-10-05 19:26:38 -0700
committerGlenn Morris2010-10-05 19:26:38 -0700
commit4c83f6e1e2a63ea1b16fd1e35a7790b5c5ed5e1f (patch)
tree5cb5f6f5e563f489e8bf107e023615694e279e92 /doc/lispref
parentc640fcd1529b08e5006b8064eead608b5164f288 (diff)
downloademacs-4c83f6e1e2a63ea1b16fd1e35a7790b5c5ed5e1f.tar.gz
emacs-4c83f6e1e2a63ea1b16fd1e35a7790b5c5ed5e1f.zip
Misc cleanup for doc/*/Makefiles.
* doc/misc/Makefile.in (SHELL): Set it. (info): Move the mkdir dependency to the individual info files. (mostlyclean): Tidy up. (clean): Only delete the specific dvi and pdf files. (maintainer-clean): Be more restrictive in what we delete. * doc/lispref/Makefile.in: Rearrange to more closely resemble doc/emacs/Makefile. (INSTALL_INFO): Remove unused variable. (mostlyclean, infoclean, dist): New rules. (clean): Delete dvi and pdf files. (maintainer-clean): Remove elisp.oaux, use infoclean. * doc/lispintro/Makefile.in (SHELL): Use /bin/sh, like every other Makefile.in. (INFO_SOURCES, INFO_TARGETS, DVI_TARGETS): Remove variables. ($(infodir), html, pdf, infoclean, dist): New rules. (${infodir}/eintr): Ensure $infodir exists. Use $@. (emacs-lisp-intro.dvi, emacs-lisp-intro.pdf, emacs-lisp-intro.html): Use $^. (.PHONY): Declare clean rules. (mostlyclean): Delete more temp files. (clean): Delete specific dvi, pdf and html files. (maintainer-clean): Use infoclean. (.NOEXPORT): Remove, unused by any other Makefile.in. * doc/emacs/Makefile.in (EMACS_XTRA): Add the main source file. (emacs-xtra.dvi, emacs-xtra.pdf): Remove explicit emacs-xtra.texi. (mostlyclean): No core files, reorder other files. (clean): Delete specific dvi and pdf files. (infoclean, dist): New rules. (maintainer-clean): Use infoclean.
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/ChangeLog8
-rw-r--r--doc/lispref/Makefile.in35
2 files changed, 34 insertions, 9 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 3cb96fe8fbe..1c6ddb9bdfa 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,11 @@
12010-10-06 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in: Rearrange to more closely resemble doc/emacs/Makefile.
4 (INSTALL_INFO): Remove unused variable.
5 (mostlyclean, infoclean, dist): New rules.
6 (clean): Delete dvi and pdf files.
7 (maintainer-clean): Remove elisp.oaux, use infoclean.
8
12010-10-04 Glenn Morris <rgm@gnu.org> 92010-10-04 Glenn Morris <rgm@gnu.org>
2 10
3 * Makefile.in (dvi, pdf, $(infodir)): New targets. 11 * Makefile.in (dvi, pdf, $(infodir)): New targets.
diff --git a/doc/lispref/Makefile.in b/doc/lispref/Makefile.in
index 7ef19febbad..760cfcc0bd3 100644
--- a/doc/lispref/Makefile.in
+++ b/doc/lispref/Makefile.in
@@ -19,6 +19,7 @@
19# You should have received a copy of the GNU General Public License 19# You should have received a copy of the GNU General Public License
20# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. 20# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21 21
22SHELL = /bin/sh
22 23
23# Standard configure variables. 24# Standard configure variables.
24srcdir = @srcdir@ 25srcdir = @srcdir@
@@ -30,11 +31,9 @@ infodir = ../../info
30# Directory with the (customized) texinfo.tex file. 31# Directory with the (customized) texinfo.tex file.
31texinfodir = $(srcdir)/../misc 32texinfodir = $(srcdir)/../misc
32 33
34MAKEINFO = makeinfo --force
33TEXI2DVI = texi2dvi 35TEXI2DVI = texi2dvi
34TEXI2PDF = texi2pdf 36TEXI2PDF = texi2pdf
35SHELL = /bin/sh
36INSTALL_INFO = install-info
37MAKEINFO = makeinfo --force
38 37
39# List of all the texinfo files in the manual: 38# List of all the texinfo files in the manual:
40 39
@@ -109,16 +108,34 @@ elisp.dvi: $(srcs)
109elisp.pdf: $(srcs) 108elisp.pdf: $(srcs)
110 $(TEXI2PDF) -I $(srcdir) -I $(texinfodir) $(srcdir)/elisp.texi 109 $(TEXI2PDF) -I $(srcdir) -I $(texinfodir) $(srcdir)/elisp.texi
111 110
112.PHONY: clean distclean maintainer-clean 111.PHONY: mostlyclean clean distclean maintainer-clean infoclean
112
113## [12] stuff is from two-volume.make.
114mostlyclean:
115 rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \
116 *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs
117 rm -f elisp[12]*
113 118
114clean: 119clean: mostlyclean
115 rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \ 120 rm -f elisp.dvi elisp.pdf vol[12].pdf
116 *.vr *.vrs *.pg *.pgs *.ky *.kys elisp[12]*
117 121
118distclean: clean 122distclean: clean
119 123
120maintainer-clean: clean 124infoclean:
121 rm -f elisp.dvi elisp.pdf elisp.oaux
122 -cd $(infodir) && rm -f elisp elisp-[1-9] elisp-[1-9][0-9] 125 -cd $(infodir) && rm -f elisp elisp-[1-9] elisp-[1-9][0-9]
123 126
127maintainer-clean: distclean infoclean
128
129## Note this excludes the two-volume stuff.
130dist:
131 rm -rf lispref
132 mkdir lispref
133 cp ${srcdir}/*.texi ${texinfodir}/texinfo.tex \
134 ${srcdir}/ChangeLog* ${srcdir}/README lispref/
135 sed -e 's/@sr[c]dir@/./' -e 's/\(texinfodir *=\).*/\1 ./' \
136 -e 's/\(infodir *=\).*/\1 ./' -e 's/^\(clean:.*\)/\1 infoclean/' \
137 ${srcdir}/Makefile.in > lispref/Makefile
138 tar -cf elisp-texi.tar lispref
139 rm -rf lispref
140
124### Makefile ends here 141### Makefile ends here