From 7bbfcd10ec17604d4dcb7afd17178198bbb3af35 Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Fri, 6 Aug 2021 14:52:27 +0000 Subject: [PATCH] [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#1096 X-original-commit: d8684e8963c33b268683d018ba3e5e5e86e2d234 Signed-off-by: Antoine Vandevenne (anv) Signed-off-by: Victor Feyens (vfe) --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 8cbf3d99d..c06f920fa 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,10 @@ ifndef BUILD_DIR BUILD_DIR = _build endif +ifndef CURRENT_LANG + CURRENT_LANG = en +endif + SPHINX_BUILD = sphinx-build CONFIG_DIR = . SPHINXOPTS = -D project_root=$(ROOT) -D canonical_version=$(CANONICAL_VERSION) \