mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Added parallelism support via --jobs to docs build Makefile rule.
This commit is contained in:
parent
e9929cb494
commit
0977ec671a
@ -8,6 +8,7 @@ SPHINXBUILD ?= sphinx-build
|
|||||||
PAPER ?=
|
PAPER ?=
|
||||||
BUILDDIR ?= _build
|
BUILDDIR ?= _build
|
||||||
LANGUAGE ?=
|
LANGUAGE ?=
|
||||||
|
JOBS ?= auto
|
||||||
|
|
||||||
# Set the default language.
|
# Set the default language.
|
||||||
ifndef LANGUAGE
|
ifndef LANGUAGE
|
||||||
@ -21,7 +22,7 @@ LANGUAGEOPT = $(firstword $(subst _, ,$(LANGUAGE)))
|
|||||||
# Internal variables.
|
# Internal variables.
|
||||||
PAPEROPT_a4 = -D latex_paper_size=a4
|
PAPEROPT_a4 = -D latex_paper_size=a4
|
||||||
PAPEROPT_letter = -D latex_paper_size=letter
|
PAPEROPT_letter = -D latex_paper_size=letter
|
||||||
ALLSPHINXOPTS = -n -d $(BUILDDIR)/doctrees -D language=$(LANGUAGEOPT) $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
ALLSPHINXOPTS = -n -d $(BUILDDIR)/doctrees -D language=$(LANGUAGEOPT) --jobs $(JOBS) $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
||||||
# the i18n builder cannot share the environment and doctrees with the others
|
# the i18n builder cannot share the environment and doctrees with the others
|
||||||
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user