[IMP] Makefile: allow to choose the export path

closes odoo/documentation#15637

X-original-commit: cb75529d9a
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
This commit is contained in:
Christophe Monniez
2025-12-10 09:13:36 +00:00
parent bda21fd842
commit a3254f02db

View File

@@ -13,6 +13,10 @@ ifndef CURRENT_LANG
CURRENT_LANG = en CURRENT_LANG = en
endif endif
ifndef EXPORT_PATH
EXPORT_PATH = locale/sources
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) \
@@ -69,7 +73,7 @@ latexpdf:
gettext: gettext:
@echo "Generating translatable files..." @echo "Generating translatable files..."
$(SPHINX_BUILD) -c $(CONFIG_DIR) -b gettext $(SOURCE_DIR) locale/sources $(SPHINX_BUILD) -c $(CONFIG_DIR) -b gettext $(SOURCE_DIR) $(EXPORT_PATH)
@echo "Generation finished." @echo "Generation finished."
$(HTML_BUILD_DIR)/_static/style.css: extensions/odoo_theme/static/style.scss extensions/odoo_theme/static/scss/*.scss $(HTML_BUILD_DIR)/_static/style.css: extensions/odoo_theme/static/style.scss extensions/odoo_theme/static/scss/*.scss