Description: Add the option to build Texinfo-format documentation.
Author: Benjamin Moody <benjamin@physionet.org>
Bug-Debian: https://bugs.debian.org/881959
Last-Update: 2017-11-27
Forwarded: https://github.com/python/cpython/commit/c3d679fd398f42a2e489fbe3dab17fac1fb2439c

--- a/Doc/Makefile
+++ b/Doc/Makefile
@@ -32,6 +32,7 @@ help:
 	@echo "  htmlview   to open the index page built by the html target in your browser"
 	@echo "  htmlhelp   to make HTML files and a HTML help project"
 	@echo "  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
+	@echo "  texinfo    to make Texinfo files"
 	@echo "  text       to make plain text files"
 	@echo "  texinfo    to make Texinfo file"
 	@echo "  epub       to make EPUB files"
@@ -86,6 +87,11 @@ latex: build
 	@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
 	      "run these through (pdf)latex."
 
+texinfo: BUILDER = texinfo
+texinfo: build
+	@echo "Build finished; the Texinfo files are in build/texinfo."
+	@echo "Run \`make\' in that directory to run these through makeinfo."
+
 text: BUILDER = text
 text: build
 	@echo "Build finished; the text files are in build/text."
