Makefile 893 B

123456789101112131415161718192021222324252627282930
  1. # Minimal makefile for Sphinx documentation
  2. #
  3. ifdef FAIL_WARN
  4. override FAIL_WARN=-W
  5. endif
  6. # You can set these variables from the command line.
  7. SPHINXOPTS = -n -q -j auto -T $(FAIL_WARN) $(OPTS)
  8. SPHINXBUILD = sphinx-build
  9. SPHINXAUTOBUILD = sphinx-autobuild
  10. SPHINXPROJ = kitty
  11. SOURCEDIR = .
  12. BUILDDIR = _build
  13. # Put it first so that "make" without argument is like "make help".
  14. help:
  15. @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
  16. .PHONY: help Makefile
  17. # Catch-all target: route all unknown targets to Sphinx using the new
  18. # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
  19. %: Makefile
  20. $(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
  21. develop-docs:
  22. $(SPHINXAUTOBUILD) --ignore "$(abspath $(SOURCEDIR))/generated/*" --watch ../kitty --watch ../kittens -b dirhtml "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)