Makefile 598 B

123456789101112131415161718192021222324252627
  1. # Minimal makefile for Sphinx documentation
  2. #
  3. # You can set these variables from the command line.
  4. SPHINXOPTS = -a
  5. SPHINXBUILD = sphinx-build
  6. SPHINXPROJ = sparse
  7. SOURCEDIR = .
  8. BUILDDIR = build
  9. targets := help
  10. targets += html
  11. targets += man
  12. # Put it first so that "make" without argument is like "make help".
  13. help:
  14. # route all targets to Sphinx using the new "make mode" option.
  15. $(targets): conf.py Makefile
  16. @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)
  17. %.1: %.rst man
  18. @mv build/man/$@ $@
  19. .PHONY: Makefile # avoid circular deps with the catch-all rule