aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2022-03-23 15:58:43 +0100
committern-peugnet <n.peugnet@free.fr>2022-03-23 15:58:43 +0100
commit8b9b1850aff9c5ce7f936d50608c6e972184b624 (patch)
treef5b2e763fe57c0f4c14242ff21ac58a5533c3a7b /Makefile
parentb0adc08f05f25d644c645d1e7fb46cf6332bfc0a (diff)
downloadclub1-docs-8b9b1850aff9c5ce7f936d50608c6e972184b624.tar.gz
club1-docs-8b9b1850aff9c5ce7f936d50608c6e972184b624.zip
prepare for gettext translations
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 51e3ffa..2c15a7b 100644
--- a/Makefile
+++ b/Makefile
@@ -8,12 +8,16 @@ SPHINXBUILD ?= sphinx-build
SPHINXCMDS = clean html latexpdf man
SOURCEDIR = .
BUILDDIR = _build
+LOCALES = en
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
-.PHONY: help Makefile $(SPHINXCMDS)
+.PHONY: help locales Makefile $(SPHINXCMDS)
+
+locales: gettext
+ @sphinx-intl update -p $(BUILDDIR)/gettext $(LOCALES:%=-l %)
# Explicit Sphinx commands for autocompletion.
$(SPHINXCMDS):