summaryrefslogtreecommitdiff
path: root/sphinx/make_mode.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/make_mode.py')
-rw-r--r--sphinx/make_mode.py62
1 files changed, 38 insertions, 24 deletions
diff --git a/sphinx/make_mode.py b/sphinx/make_mode.py
index 75c5ab8b2..36f0a4298 100644
--- a/sphinx/make_mode.py
+++ b/sphinx/make_mode.py
@@ -29,30 +29,32 @@ proj_name = os.getenv('SPHINXPROJ', '<project>')
BUILDERS = [
- ("", "html", "to make standalone HTML files"),
- ("", "dirhtml", "to make HTML files named index.html in directories"),
- ("", "singlehtml", "to make a single large HTML file"),
- ("", "pickle", "to make pickle files"),
- ("", "json", "to make JSON files"),
- ("", "htmlhelp", "to make HTML files and a HTML help project"),
- ("", "qthelp", "to make HTML files and a qthelp project"),
- ("", "devhelp", "to make HTML files and a Devhelp project"),
- ("", "epub", "to make an epub"),
- ("", "latex", "to make LaTeX files, you can set PAPER=a4 or PAPER=letter"),
- ("posix", "latexpdf", "to make LaTeX files and run them through pdflatex"),
- ("posix", "latexpdfja", "to make LaTeX files and run them through platex/dvipdfmx"),
- ("", "text", "to make text files"),
- ("", "man", "to make manual pages"),
- ("", "texinfo", "to make Texinfo files"),
- ("posix", "info", "to make Texinfo files and run them through makeinfo"),
- ("", "gettext", "to make PO message catalogs"),
- ("", "changes", "to make an overview of all changed/added/deprecated items"),
- ("", "xml", "to make Docutils-native XML files"),
- ("", "pseudoxml", "to make pseudoxml-XML files for display purposes"),
- ("", "linkcheck", "to check all external links for integrity"),
- ("", "doctest", "to run all doctests embedded in the documentation "
- "(if enabled)"),
- ("", "coverage", "to run coverage check of the documentation (if enabled)"),
+ ("", "html", "to make standalone HTML files"),
+ ("", "dirhtml", "to make HTML files named index.html in directories"),
+ ("", "singlehtml", "to make a single large HTML file"),
+ ("", "pickle", "to make pickle files"),
+ ("", "json", "to make JSON files"),
+ ("", "htmlhelp", "to make HTML files and a HTML help project"),
+ ("", "qthelp", "to make HTML files and a qthelp project"),
+ ("", "devhelp", "to make HTML files and a Devhelp project"),
+ ("", "epub", "to make an epub"),
+ ("", "latex", "to make LaTeX files, you can set PAPER=a4 or PAPER=letter"),
+ ("posix", "latexpdf", "to make LaTeX files and run them through pdflatex"),
+ ("posix", "latexpdfja", "to make LaTeX files and run them through platex/dvipdfmx"),
+ ("posix", "lualatexpdf", "to make LaTeX files and run them through lualatex"),
+ ("posix", "xelatexpdf", "to make LaTeX files and run them through xelatex"),
+ ("", "text", "to make text files"),
+ ("", "man", "to make manual pages"),
+ ("", "texinfo", "to make Texinfo files"),
+ ("posix", "info", "to make Texinfo files and run them through makeinfo"),
+ ("", "gettext", "to make PO message catalogs"),
+ ("", "changes", "to make an overview of all changed/added/deprecated items"),
+ ("", "xml", "to make Docutils-native XML files"),
+ ("", "pseudoxml", "to make pseudoxml-XML files for display purposes"),
+ ("", "linkcheck", "to check all external links for integrity"),
+ ("", "doctest", "to run all doctests embedded in the documentation "
+ "(if enabled)"),
+ ("", "coverage", "to run coverage check of the documentation (if enabled)"),
]
@@ -170,6 +172,18 @@ class Make(object):
with cd(self.builddir_join('latex')):
os.system('make all-pdf-ja')
+ def build_lualatexpdf(self):
+ if self.run_generic_build('latex') > 0:
+ return 1
+ with cd(self.builddir_join('latex')):
+ os.system('make PDFLATEX=lualatex all-pdf')
+
+ def build_xelatexpdf(self):
+ if self.run_generic_build('latex') > 0:
+ return 1
+ with cd(self.builddir_join('latex')):
+ os.system('make PDFLATEX=xelatex all-pdf')
+
def build_text(self):
if self.run_generic_build('text') > 0:
return 1