Makefile 828 B

12345678910111213141516171819202122232425262728
  1. # Minimal makefile for Sphinx documentation
  2. #
  3. # You can set these variables from the command line, and also
  4. # from the environment for the first two.
  5. SPHINXOPTS ?=
  6. VENVDIR = _venv
  7. BINDIR = $(VENVDIR)/bin
  8. SPHINXBUILD = $(BINDIR)/sphinx-build
  9. SOURCEDIR = .
  10. BUILDDIR = _build
  11. # Put it first so that "make" without argument is like "make help".
  12. help: $(SPHINXBUILD)
  13. @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
  14. $(SPHINXBUILD): $(VENVDIR)
  15. $(VENVDIR)/bin/pip install -r requirements.txt
  16. $(VENVDIR):
  17. python3 -m venv $(VENVDIR)
  18. .PHONY: help Makefile
  19. # Catch-all target: route all unknown targets to Sphinx using the new
  20. # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
  21. %: Makefile
  22. @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)