mirror of
https://github.com/odoo/documentation.git
synced 2025-12-12 07:29:27 +07:00
[IMP] Makefile: allow to choose the export path
closes odoo/documentation#15639
X-original-commit: cb75529d9a
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
This commit is contained in:
6
Makefile
6
Makefile
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user