aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2022-03-25 16:29:21 +0100
committern-peugnet <n.peugnet@free.fr>2022-03-25 16:29:21 +0100
commitbde1e333be9a463fed103ebb9963431b06f70604 (patch)
treeade2f5fd0e6992a7909fc3518bff8d88d8919006
parent5e10c0b6a02e4382057ac7bd0f3924cf61f54775 (diff)
downloadclub1-docs-bde1e333be9a463fed103ebb9963431b06f70604.tar.gz
club1-docs-bde1e333be9a463fed103ebb9963431b06f70604.zip
remove pot workaround by using gettext builder directly
-rw-r--r--.gitignore1
-rw-r--r--Makefile12
2 files changed, 4 insertions, 9 deletions
diff --git a/.gitignore b/.gitignore
index 6cc35f5..f7a958c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
# Project generated files
_build
*.mo
+.doctrees
diff --git a/Makefile b/Makefile
index 8f8e08e..1fdbbdf 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,6 @@ BUILDDIR = _build
MDFILES = index.md $(shell find . -type f -name '*.md')
LOCALES = en
LOCALEFILES = $(LOCALES:%=locales/%/LC_MESSAGES/package.po)
-DIRS = locales
# Put it first so that "make" without argument is like "make help".
help:
@@ -37,14 +36,8 @@ $(LOCALEFILES): locales/%/LC_MESSAGES/package.po: locales/package.pot
sphinx-intl update -p $(<D) -l $*
@touch $@
-locales/package.pot: $(BUILDDIR)/gettext/package.pot | locales
- cp $< $@
-
-$(DIRS):
- mkdir -p $@
-
-$(BUILDDIR)/gettext/package.pot: $(MDFILES)
- $(SPHINXBUILD) -M gettext "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $O
+locales/package.pot: $(MDFILES)
+ $(SPHINXBUILD) -b gettext "$(SOURCEDIR)" locales $(SPHINXOPTS) $O
@touch $@
latexpdf: latex
@@ -66,4 +59,5 @@ $(SPHINXCMDS):
clean:
rm -f locales/*/LC_MESSAGES/package.mo
+ rm -rf locales/.doctrees
rm -rf $(BUILDDIR)/*