comparison doc/lispintro/Makefile.in @ 112443:295000738bf5

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.
author Werner Lemberg <wl@gnu.org>
date Sun, 23 Jan 2011 11:31:21 +0100
parents 61f7601898b1
children
comparison
equal deleted inserted replaced
112442:76fa839f455e 112443:295000738bf5
26 26
27 infodir = $(srcdir)/../../info 27 infodir = $(srcdir)/../../info
28 # Directory with the (customized) texinfo.tex file. 28 # Directory with the (customized) texinfo.tex file.
29 texinfodir = $(srcdir)/../misc 29 texinfodir = $(srcdir)/../misc
30 30
31 MAKEINFO = makeinfo --force -I $(srcdir) 31 MAKEINFO = @MAKEINFO@
32 MAKEINFO_OPTS = --force -I $(srcdir)
32 TEXI2DVI = texi2dvi 33 TEXI2DVI = texi2dvi
33 TEXI2PDF = texi2pdf 34 TEXI2PDF = texi2pdf
34 DVIPS = dvips 35 DVIPS = dvips
36
37 ENVADD = TEXINPUTS="$(srcdir):$(texinfodir):$(TEXINPUTS)" \
38 MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
35 39
36 mkinfodir = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir} 40 mkinfodir = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir}
37 41
38 .PHONY: info dvi html pdf ps 42 .PHONY: info dvi html pdf ps
39 43
46 50
47 # The file name eintr must fit within 5 characters, to allow for 51 # The file name eintr must fit within 5 characters, to allow for
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
53 emacs-lisp-intro.dvi: ${srcdir}/emacs-lisp-intro.texi 57 emacs-lisp-intro.dvi: ${srcdir}/emacs-lisp-intro.texi
54 $(TEXI2DVI) -I $(srcdir) -I $(texinfodir) $< 58 $(ENVADD) $(TEXI2DVI) $<
55 59
56 emacs-lisp-intro.ps: emacs-lisp-intro.dvi 60 emacs-lisp-intro.ps: emacs-lisp-intro.dvi
57 $(DVIPS) -o $@ $< 61 $(DVIPS) -o $@ $<
58 62
59 emacs-lisp-intro.pdf: ${srcdir}/emacs-lisp-intro.texi 63 emacs-lisp-intro.pdf: ${srcdir}/emacs-lisp-intro.texi
60 $(TEXI2PDF) -I $(srcdir) -I $(texinfodir) $< 64 $(ENVADD) $(TEXI2PDF) $<
61 65
62 emacs-lisp-intro.html: ${srcdir}/emacs-lisp-intro.texi 66 emacs-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
67 mostlyclean: 71 mostlyclean:
68 rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \ 72 rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \