Makefile 806 B

1234567891011121314151617181920212223242526
  1. # Minimal makefile for Sphinx documentation
  2. #
  3. # You can set these variables from the command line.
  4. SPHINXOPTS =
  5. SPHINXAPI = sphinx-apidoc
  6. SPHINXAPISRC = ..
  7. SPHINXBUILD = python -msphinx
  8. SPHINXPROJ = TinyTestFW
  9. SOURCEDIR = .
  10. BUILDDIR = _build
  11. # define the files to be excluded here
  12. EXCLUEDLIST = "$(SPHINXAPISRC)/example.py"
  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. @$(SPHINXAPI) -o $(SOURCEDIR) $(SPHINXAPISRC) $(EXCLUEDLIST)
  21. @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)