Makefile 509 B

12345678910111213141516171819202122
  1. # makefile for Sphinx documentation
  2. SPHINXOPTS ?=
  3. SPHINXBUILD ?= sphinx-build
  4. SPHINXGENERATE ?= sphinx-apidoc
  5. MODULEPATH = ../yandex_music
  6. SOURCEDIR = source
  7. BUILDDIR = build
  8. TEMPLATEDIR = source/templates
  9. help:
  10. @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
  11. .PHONY: help Makefile
  12. gen:
  13. @$(SPHINXGENERATE) -f -e -M -o "$(SOURCEDIR)" -t "$(TEMPLATEDIR)" "$(MODULEPATH)" $(O)
  14. .PHONY: gen Makefile
  15. %: Makefile
  16. @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)