#### Makefile for the Emacs Lisp Introduction manual
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003,
-# 2004, 2005, 2006, 2007, 2008, 2009, 2010
-# Free Software Foundation, Inc.
+# Copyright (C) 1994-1999, 2001-2011 Free Software Foundation, Inc.
# This file is part of GNU Emacs.
# Directory with the (customized) texinfo.tex file.
texinfodir = $(srcdir)/../misc
-MAKEINFO = makeinfo --force -I $(srcdir)
+MAKEINFO = @MAKEINFO@
+MAKEINFO_OPTS = --force -I $(srcdir)
TEXI2DVI = texi2dvi
TEXI2PDF = texi2pdf
DVIPS = dvips
+ENVADD = TEXINPUTS="$(srcdir):$(texinfodir):$(TEXINPUTS)" \
+ MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
+
mkinfodir = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir}
.PHONY: info dvi html pdf ps
# -NN extensions to fit into DOS 8+3 limits without clashing.
${infodir}/eintr: ${srcdir}/emacs-lisp-intro.texi
$(mkinfodir)
- $(MAKEINFO) -o $@ $<
+ $(MAKEINFO) $(MAKEINFO_OPTS) -o $@ $<
emacs-lisp-intro.dvi: ${srcdir}/emacs-lisp-intro.texi
- $(TEXI2DVI) -I $(srcdir) -I $(texinfodir) $<
+ $(ENVADD) $(TEXI2DVI) $<
emacs-lisp-intro.ps: emacs-lisp-intro.dvi
$(DVIPS) -o $@ $<
emacs-lisp-intro.pdf: ${srcdir}/emacs-lisp-intro.texi
- $(TEXI2PDF) -I $(srcdir) -I $(texinfodir) $<
+ $(ENVADD) $(TEXI2PDF) $<
emacs-lisp-intro.html: ${srcdir}/emacs-lisp-intro.texi
- $(MAKEINFO) --html -o $@ $<
+ $(MAKEINFO) $(MAKEINFO_OPTS) --html -o $@ $<
.PHONY: mostlyclean clean distclean maintainer-clean infoclean