Skip to content

Add -j auto to the Makefile. #1220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,22 @@
# You can set these variables from the command line.
PYTHON = python3
VENVDIR = ./venv
BUILDDIR = _build
SPHINXOPTS = -W --keep-going
SPHINXBUILD = $(VENVDIR)/bin/sphinx-build
SPHINXOPTS = -W --keep-going
BUILDDIR = _build
BUILDER = html
SPHINXLINT = $(VENVDIR)/bin/sphinx-lint
JOBS = auto
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JOBS = auto and the -j $(JOBS) below are the only actual additions. While I was at it I tried to reorganize the vars a bit to make them closer to cpython's Doc/Makefile, including the order of the vars below.

PAPER =
SPHINXLINT = $(VENVDIR)/bin/sphinx-lint

# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -b $(BUILDER) \
-d $(BUILDDIR)/doctrees \
$(PAPEROPT_$(PAPER)) $(SPHINXOPTS) \
-j $(JOBS) \
$(PAPEROPT_$(PAPER)) \
$(SPHINXOPTS) \
. $(BUILDDIR)/$(BUILDER)

.PHONY: help
Expand Down