about summary refs log tree commit diff
path: root/Doc/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/Makefile.in')
-rw-r--r--Doc/Makefile.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/Makefile.in b/Doc/Makefile.in
index c87f79cef..ca1ab2741 100644
--- a/Doc/Makefile.in
+++ b/Doc/Makefile.in
@@ -97,7 +97,11 @@ pdf: zsh.pdf
 .PHONY: pdf
 
 zsh.pdf: $(sdir)/zsh.texi
-	PDFTEX=$(PDFETEX) $(TEXI2DVI) --pdf $(sdir)/zsh.texi
+	if [ x$(TEXI2PDF) != x ]; then \
+	  $(TEXI2PDF) $(sdir)/zsh.texi; \
+	else \
+	  PDFTEX=$(PDFETEX) $(TEXI2DVI) --pdf $(sdir)/zsh.texi; \
+	fi
 
 texi: $(sdir)/zsh.texi
 .PHONY: texi