1# Minimal makefile for Sphinx documentation
2#
3
4# You can set these variables from the command line.
5SPHINXOPTS    = -a
6SPHINXBUILD   = sphinx-build
7SPHINXPROJ    = sparse
8SOURCEDIR     = .
9BUILDDIR      = build
10
11targets := help
12targets += html
13targets += man
14
15
16# Put it first so that "make" without argument is like "make help".
17help:
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
27