From 8b9b1850aff9c5ce7f936d50608c6e972184b624 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Wed, 23 Mar 2022 15:58:43 +0100 Subject: prepare for gettext translations --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') 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): -- cgit v1.2.3