Makefile 1022 B

12345678910111213141516171819202122232425262728
  1. # Minimal makefile for Sphinx documentation
  2. #
  3. # You can set these variables from the command line.
  4. SPHINXOPTS =
  5. SPHINXBUILD = sphinx-build
  6. SOURCEDIR = .
  7. BUILDDIR = .
  8. # Put it first so that "make" without argument is like "make help".
  9. help:
  10. @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
  11. .PHONY: help Makefile
  12. # I got the following warning running "make html":
  13. # WARNING: html_static_path entry '_static' does not exist
  14. # The _static folder in a Sphinx project is used to store custom static files. We must either
  15. # suppress the warning by creating the folder or remove the entry from conf.py ("html_static_path = []").
  16. # Creating the folder may be safer.
  17. html:
  18. @mkdir -p _static
  19. @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
  20. # Catch-all target: route all unknown targets to Sphinx using the new
  21. # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
  22. %: Makefile
  23. @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)