From 808594146764395c0e18f132ae6e3a602d5b3595 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Wed, 10 Dec 2025 09:13:36 +0000 Subject: [PATCH] [IMP] Makefile: allow to choose the export path closes odoo/documentation#15641 X-original-commit: cb75529d9a43dd26c05d2453c4a1cf283ebac496 Signed-off-by: Christophe Monniez (moc) --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2fdfbe4fc..2f5559e07 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,10 @@ ifndef CURRENT_LANG CURRENT_LANG = en endif +ifndef EXPORT_PATH + EXPORT_PATH = locale/sources +endif + SPHINX_BUILD = sphinx-build CONFIG_DIR = . SPHINXOPTS = -D project_root=$(ROOT) -D canonical_version=$(CANONICAL_VERSION) \ @@ -69,7 +73,7 @@ latexpdf: gettext: @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." $(HTML_BUILD_DIR)/_static/style.css: extensions/odoo_theme/static/style.scss extensions/odoo_theme/static/scss/*.scss