2021-09-08 16:34:25 +02:00
|
|
|
# Minimal makefile for Sphinx documentation
|
|
|
|
#
|
2021-08-01 09:18:23 +02:00
|
|
|
|
2021-09-08 16:34:25 +02:00
|
|
|
# You can set these variables from the command line, and also
|
|
|
|
# from the environment for the first two.
|
|
|
|
SPHINXOPTS ?=
|
|
|
|
SPHINXBUILD ?= sphinx-build
|
|
|
|
SOURCEDIR = source
|
|
|
|
BUILDDIR = build
|
2021-08-01 09:18:23 +02:00
|
|
|
|
2021-09-08 16:34:25 +02:00
|
|
|
# Put it first so that "make" without argument is like "make help".
|
|
|
|
help:
|
|
|
|
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
|
|
|
|
|
|
.PHONY: help Makefile
|
2021-08-15 14:27:15 +02:00
|
|
|
|
2021-09-08 16:34:25 +02:00
|
|
|
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
|
|
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
|
|
%: Makefile
|
|
|
|
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
2021-08-01 09:18:23 +02:00
|
|
|
|
2021-09-08 16:34:25 +02:00
|
|
|
.PHONY: sphinx bundle
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -rf build/*
|
2021-08-01 09:18:23 +02:00
|
|
|
|
|
|
|
sphinx:
|
2021-09-08 16:34:25 +02:00
|
|
|
$(MAKE) singlehtml epub latexpdf
|
2021-08-01 09:18:23 +02:00
|
|
|
|
2021-09-08 16:34:25 +02:00
|
|
|
bundle: sphinx
|
2021-08-01 09:18:23 +02:00
|
|
|
-mkdir bundle
|
2021-09-08 16:34:25 +02:00
|
|
|
cp build/epub/*.epub bundle/
|
|
|
|
cp build/latex/*.pdf bundle/
|
|
|
|
rsync -av --delete build/singlehtml/ bundle/html
|