# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line.
SPHINXOPTS    = --fail-on-warning
SPHINXBUILD   = sphinx-build
SPHINXPROJ    = dramatiq
SOURCEDIR     = source
BUILDDIR      = build


.PHONY: all
all:
	@$(MAKE) html


.PHONY: deploy
deploy: all
	rsync -avz --delete build/html/* dramatiq:~/www


.PHONY: help
help:
	@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)


.PHONY: Makefile
# 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)
