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