changeset 105776:88934faa0925

(texinfodir, TEXI2PDF): New variables. (ENVADD): Add -I$texinfodir. (emacs-lisp-intro.pdf): New target.
author Glenn Morris <rgm@gnu.org>
date Tue, 27 Oct 2009 02:45:57 +0000
parents 8c46dd95e6c7
children 864345ea94cf
files doc/lispintro/makefile.w32-in
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/doc/lispintro/makefile.w32-in	Tue Oct 27 02:45:40 2009 +0000
+++ b/doc/lispintro/makefile.w32-in	Tue Oct 27 02:45:57 2009 +0000
@@ -22,6 +22,8 @@
 srcdir = .
 
 infodir = $(srcdir)/../../info
+# Directory with the (customized) texinfo.tex file.
+texinfodir = $(srcdir)/../misc
 
 INFO_SOURCES = $(srcdir)/emacs-lisp-intro.texi
 # The file name eintr must fit within 5 characters, to allow for
@@ -32,9 +34,10 @@
 MAKEINFO = makeinfo
 INSTALL_INFO = install-info
 TEXI2DVI = texi2dvi
+TEXI2PDF = texi2pdf
 DVIPS = dvips
 ENVADD = $(srcdir)\..\..\nt\envadd.bat "TEXINPUTS=$(srcdir);$(TEXINPUTS)" \
-	 "MAKEINFO=$(MAKEINFO) -I$(srcdir)" /C
+	 "MAKEINFO=$(MAKEINFO) -I$(srcdir) -I$(texinfodir)" /C
 
 .SUFFIXES: .dvi .ps .texi
 
@@ -51,6 +54,9 @@
 emacs-lisp-intro.dvi: $(INFO_SOURCES)
 	$(ENVADD) $(TEXI2DVI) $(srcdir)/emacs-lisp-intro.texi
 
+emacs-lisp-intro.pdf: ${INFO_SOURCES}
+	$(ENVADD) $(TEXI2PDF) $(srcdir)/emacs-lisp-intro.texi
+
 emacs-lisp-intro.html: $(INFO_SOURCES)
 	$(MAKEINFO) --html -o $@ $(srcdir)/emacs-lisp-intro.texi