| 1 | # Minimal makefile for Sphinx documentation |
| 2 | # |
| 3 | |
| 4 | # You can set these variables from the command line. |
| 5 | SPHINXOPTS = |
| 6 | SPHINXBUILD = python3 -msphinx |
| 7 | SOURCEDIR = source |
| 8 | BUILDDIR = ./build |
| 9 | PDFBUILDDIR = /tmp |
| 10 | PDF = ../manual.pdf |
| 11 | |
| 12 | # Put it first so that "make" without argument is like "make help". |
| 13 | help: |
| 14 | @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
| 15 | |
| 16 | .PHONY: help Makefile |
| 17 | |
| 18 | # Catch-all target: route all unknown targets to Sphinx using the new |
| 19 | # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). |
| 20 | %: Makefile |
| 21 | @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
| 22 | |
| 23 | buildandcommithtml: html latexpdf |
| 24 | |
| 25 | cd $(BUILDDIR)/html; git add . ; git commit -m "rebuilt docs"; git push origin gh-pages |