# Minimal makefile for Sphinx documentation # # You can set these variables from the command line. LOCALE ?= fr PUBHOST ?= club1.fr PUBDIR ?= /var/www/docs ifneq "$(LOCALE)" "fr" override NOTFR = 1 else override NOTFR = endif SPHINXLANG = -D language=$(LOCALE) SPHINXOPTS += -a SPHINXBUILD ?= sphinx-build SPHINXBUILDERS = html dirhtml singlehtml epub latex text man texinfo SPHINXCMDS = pickle json htmlhelp changes xml pseudoxml linkcheck doctest coverage SOURCEDIR = . 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: $(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $O .PHONY: help clean update-po gettext latexpdf info publish $(SPHINXBUILDERS) $(SPHINXCMDS) update-po: $(LOCALEFILES) gettext: locales/package.pot $(LOCALEFILES): locales/%/LC_MESSAGES/package.po: locales/package.pot sphinx-intl update -p $(