Skip to content

Commit

Permalink
[FIX] Makefile: avoid confusing // in build dir path
Browse files Browse the repository at this point in the history
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 #1093

Signed-off-by: Antoine Vandevenne (anv) <[email protected]>
  • Loading branch information
Feyensv committed Aug 6, 2021
1 parent fd56d8c commit d8684e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

0 comments on commit d8684e8

Please sign in to comment.