Skip to content

Instantly share code, notes, and snippets.

@cocoatomo
Created May 13, 2011 00:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cocoatomo/969750 to your computer and use it in GitHub Desktop.
Save cocoatomo/969750 to your computer and use it in GitHub Desktop.
# OMakefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
SRCDIR = source
BUILDDIR = build
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_a4) $(SPHINXOPTS) $(SRCDIR)
SRCS = $(glob $(SRCDIR)/*.rst)
.DEFAULT: $(SRCS)
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment