1 flowspytag = $(shell git describe --abbrev=0)
2 flowspyver = $(shell git describe --abbrev=0 | egrep -o '([0-9]+\.){1,10}[0-9]+' | sed -e 's/\./_/g')
3 name = $(shell basename $(shell pwd))
5 # You can set these variables from the command line.
7 SPHINXBUILD = sphinx-build
12 PAPEROPT_a4 = -D latex_paper_size=a4
13 PAPEROPT_letter = -D latex_paper_size=letter
14 ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) doc/source
16 .PHONY: help dist distclean docclean html latex text
19 @echo "Please use \`make <target>' where <target> is one of"
20 @echo " html to make standalone HTML files"
21 @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
22 @echo " text to make standalone txt files"
25 git archive --format tar --prefix $(name)-$(flowspyver)/ -o $(name)-$(flowspyver).tar $(flowspytag)
26 gzip -f $(name)-$(flowspyver).tar
35 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
37 @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
40 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
42 @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
43 @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
44 "run these through (pdf)latex."
47 $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text