[FIX] Makefile: avoid confusing // in build dir path
When locally building the doc (aka make), CURRENT_LANG is not defined, which results in HTML_BUILD_DIR = _build/html//, resulting in commands & logs like the following mkdir -p _build/html//_static pysassc extensions/odoo_theme/static/style.scss _build/html//_static/style.css This has no impact on linux builds, but could be unclear/confusing for some non tech users (can it have any impact on other OS's/distros ?) closes odoo/documentation#1093 Signed-off-by: Antoine Vandevenne (anv) <AntoineVDV@users.noreply.github.com>
This commit is contained in:
parent
fd56d8c170
commit
d8684e8963
4
Makefile
4
Makefile
@ -9,6 +9,10 @@ ifndef BUILD_DIR
|
|||||||
BUILD_DIR = _build
|
BUILD_DIR = _build
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifndef CURRENT_LANG
|
||||||
|
CURRENT_LANG = en
|
||||||
|
endif
|
||||||
|
|
||||||
SPHINX_BUILD = sphinx-build
|
SPHINX_BUILD = sphinx-build
|
||||||
CONFIG_DIR = .
|
CONFIG_DIR = .
|
||||||
SPHINXOPTS = -D project_root=$(ROOT) -D canonical_version=$(CANONICAL_VERSION) \
|
SPHINXOPTS = -D project_root=$(ROOT) -D canonical_version=$(CANONICAL_VERSION) \
|
||||||
|
Loading…
Reference in New Issue
Block a user