SciPost Code Repository

Skip to content
Snippets Groups Projects
Makefile 608 B
Newer Older
Jean-Sébastien Caux's avatar
Jean-Sébastien Caux committed
# Minimal makefile for Sphinx documentation
Jean-Sébastien Caux's avatar
Jean-Sébastien Caux committed
#

# You can set these variables from the command line.
SPHINXOPTS    =
SPHINXBUILD   = sphinx-build
Jean-Sébastien Caux's avatar
Jean-Sébastien Caux committed
SPHINXPROJ    = SciPost
SOURCEDIR     = source
BUILDDIR      = build
Jean-Sébastien Caux's avatar
Jean-Sébastien Caux committed
# Put it first so that "make" without argument is like "make help".
Jean-Sébastien Caux's avatar
Jean-Sébastien Caux committed
help:
Jean-Sébastien Caux's avatar
Jean-Sébastien Caux committed
	@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Jean-Sébastien Caux's avatar
Jean-Sébastien Caux committed
.PHONY: help Makefile
Jean-Sébastien Caux's avatar
Jean-Sébastien Caux committed
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option.  $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
	@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)