Skip to content

Commit ae79419

Browse files
AntoineVDVFeyensv
authored andcommitted
Makefile: make build serial by default
1 parent 8f09480 commit ae79419

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# Makefile for Sphinx documentation
22

3+
# Pass WORKERS=auto for parallel build
4+
ifndef WORKERS
5+
WORKERS = 1
6+
endif
7+
38
SPHINX_BUILD = sphinx-build
49
CONFIG_DIR = .
510
SPHINXOPTS = -D project_root=$(ROOT) -D canonical_version=$(CANONICAL_VERSION) \
611
-D versions=$(VERSIONS) -D languages=$(LANGUAGES) -D language=$(CURRENT_LANG) \
712
-D is_remote_build=$(IS_REMOTE_BUILD) \
813
-A google_analytics_key=$(GOOGLE_ANALYTICS_KEY) \
9-
-j auto
14+
-j $(WORKERS)
1015
SOURCE_DIR = content
1116
BUILD_DIR = _build
1217

@@ -65,7 +70,7 @@ extensions/odoo_theme/static/style.css: extensions/odoo_theme/static/style.scss
6570

6671
#=== Development and debugging rules ===#
6772

68-
fast: SPHINXOPTS += -A collapse_menu=True
73+
fast: SPHINXOPTS += -A collapse_menu=True -j auto
6974
fast: html
7075

7176
static: extensions/odoo_theme/static/style.css

0 commit comments

Comments
 (0)