diff options
author | n-peugnet <n.peugnet@free.fr> | 2022-03-25 16:29:21 +0100 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2022-03-25 16:29:21 +0100 |
commit | bde1e333be9a463fed103ebb9963431b06f70604 (patch) | |
tree | ade2f5fd0e6992a7909fc3518bff8d88d8919006 | |
parent | 5e10c0b6a02e4382057ac7bd0f3924cf61f54775 (diff) | |
download | club1-docs-bde1e333be9a463fed103ebb9963431b06f70604.tar.gz club1-docs-bde1e333be9a463fed103ebb9963431b06f70604.zip |
remove pot workaround by using gettext builder directly
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 12 |
2 files changed, 4 insertions, 9 deletions
@@ -1,3 +1,4 @@ # Project generated files _build *.mo +.doctrees @@ -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)/* |