aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner LEMBERG2011-01-23 11:31:21 +0100
committerWerner LEMBERG2011-01-23 11:31:21 +0100
commit53ed5e45d394747a9de976a936cd8b017f75e1a4 (patch)
tree158cbb8d0d195a725ae0fbe965f3c86a32649817
parenta8e1e9ee62214f0c97da1ebf8ede733b7acdc5d3 (diff)
downloademacs-53ed5e45d394747a9de976a936cd8b017f75e1a4.tar.gz
emacs-53ed5e45d394747a9de976a936cd8b017f75e1a4.zip
Improve configuration of makeinfo.
* Makefile.in (MAKEINFO): Now controlled by `configure'. (MAKEINFO_OPTS): New variable. Use it where appropriate. (ENVADD): New variable to control texi2dvi and texi2pdf.
-rw-r--r--doc/lispintro/ChangeLog6
-rw-r--r--doc/lispintro/Makefile.in14
2 files changed, 15 insertions, 5 deletions
diff --git a/doc/lispintro/ChangeLog b/doc/lispintro/ChangeLog
index 4320a29f60f..416b53576b6 100644
--- a/doc/lispintro/ChangeLog
+++ b/doc/lispintro/ChangeLog
@@ -1,3 +1,9 @@
12011-01-23 Werner Lemberg <wl@gnu.org>
2
3 * Makefile.in (MAKEINFO): Now controlled by `configure'.
4 (MAKEINFO_OPTS): New variable. Use it where appropriate.
5 (ENVADD): New variable to control texi2dvi and texi2pdf.
6
12010-11-13 Glenn Morris <rgm@gnu.org> 72010-11-13 Glenn Morris <rgm@gnu.org>
2 8
3 * emacs-lisp-intro.texi: Rename the `count-words-region' example, 9 * emacs-lisp-intro.texi: Rename the `count-words-region' example,
diff --git a/doc/lispintro/Makefile.in b/doc/lispintro/Makefile.in
index 9dc31978630..46325a327a5 100644
--- a/doc/lispintro/Makefile.in
+++ b/doc/lispintro/Makefile.in
@@ -28,11 +28,15 @@ infodir = $(srcdir)/../../info
28# Directory with the (customized) texinfo.tex file. 28# Directory with the (customized) texinfo.tex file.
29texinfodir = $(srcdir)/../misc 29texinfodir = $(srcdir)/../misc
30 30
31MAKEINFO = makeinfo --force -I $(srcdir) 31MAKEINFO = @MAKEINFO@
32MAKEINFO_OPTS = --force -I $(srcdir)
32TEXI2DVI = texi2dvi 33TEXI2DVI = texi2dvi
33TEXI2PDF = texi2pdf 34TEXI2PDF = texi2pdf
34DVIPS = dvips 35DVIPS = dvips
35 36
37ENVADD = TEXINPUTS="$(srcdir):$(texinfodir):$(TEXINPUTS)" \
38 MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
39
36mkinfodir = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir} 40mkinfodir = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir}
37 41
38.PHONY: info dvi html pdf ps 42.PHONY: info dvi html pdf ps
@@ -48,19 +52,19 @@ ps: emacs-lisp-intro.ps
48# -NN extensions to fit into DOS 8+3 limits without clashing. 52# -NN extensions to fit into DOS 8+3 limits without clashing.
49${infodir}/eintr: ${srcdir}/emacs-lisp-intro.texi 53${infodir}/eintr: ${srcdir}/emacs-lisp-intro.texi
50 $(mkinfodir) 54 $(mkinfodir)
51 $(MAKEINFO) -o $@ $< 55 $(MAKEINFO) $(MAKEINFO_OPTS) -o $@ $<
52 56
53emacs-lisp-intro.dvi: ${srcdir}/emacs-lisp-intro.texi 57emacs-lisp-intro.dvi: ${srcdir}/emacs-lisp-intro.texi
54 $(TEXI2DVI) -I $(srcdir) -I $(texinfodir) $< 58 $(ENVADD) $(TEXI2DVI) $<
55 59
56emacs-lisp-intro.ps: emacs-lisp-intro.dvi 60emacs-lisp-intro.ps: emacs-lisp-intro.dvi
57 $(DVIPS) -o $@ $< 61 $(DVIPS) -o $@ $<
58 62
59emacs-lisp-intro.pdf: ${srcdir}/emacs-lisp-intro.texi 63emacs-lisp-intro.pdf: ${srcdir}/emacs-lisp-intro.texi
60 $(TEXI2PDF) -I $(srcdir) -I $(texinfodir) $< 64 $(ENVADD) $(TEXI2PDF) $<
61 65
62emacs-lisp-intro.html: ${srcdir}/emacs-lisp-intro.texi 66emacs-lisp-intro.html: ${srcdir}/emacs-lisp-intro.texi
63 $(MAKEINFO) --html -o $@ $< 67 $(MAKEINFO) $(MAKEINFO_OPTS) --html -o $@ $<
64 68
65.PHONY: mostlyclean clean distclean maintainer-clean infoclean 69.PHONY: mostlyclean clean distclean maintainer-clean infoclean
66 70