Skip to content

Commit

Permalink
squash-me: Use Makefile instead of build.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
bfabio committed Dec 14, 2019
1 parent 19841d8 commit 250823a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 48 deletions.
14 changes: 13 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,28 @@ SPHINXBUILD = sphinx-build
SOURCEDIR = .
BUILDDIR = _build

LOCALES = $$(echo $(wildcard locales/??) | sed s@locales/@@g)
POT_DIR = _build/gettext

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

clean:
rm -fr _build/??
rm -fr $(BUILDDIR)/??
rm -f locales/??/LC_MESSAGES/*.mo

pot_merge_po: gettext
@LANG_OPTS=$$(echo $(LOCALES) | sed -E 's@([[:alpha:]]*)*@-l \1@g'); \
sphinx-intl update -p "${POT_DIR}" $${LANG_OPTS}

doc: clean
@for lang in $(LOCALES); \
do make -e SPHINXOPTS="-D language=$${lang}" -e BUILDDIR="_build/$${lang}" rst; \
done

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
Expand Down
47 changes: 0 additions & 47 deletions docs/build.sh

This file was deleted.

0 comments on commit 250823a

Please sign in to comment.