1# Minimal makefile for Sphinx documentation
2#
3
4# You can set these variables from the command line.
5SPHINXOPTS    =
6SPHINXBUILD   = sphinx-build
7SPHINXAUTOBUILD   = sphinx-autobuild
8SPHINXPROJ    = ProjectX-Ray
9SOURCEDIR     = .
10BUILDDIR      = _build
11
12# Put it first so that "make" without argument is like "make help".
13help:
14	@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
15
16livehtml:
17	@$(SPHINXAUTOBUILD) -b html --ignore \*.swp --ignore \*~ $(SPHINXOPTS) "$(SOURCEDIR)" "$(BUILDDIR)/html"
18
19.PHONY: help livereload Makefile
20
21# Catch-all target: route all unknown targets to Sphinx using the new
22# "make mode" option.  $(O) is meant as a shortcut for $(SPHINXOPTS).
23%: Makefile
24	@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
25