doc/Makefile
author Dmitriy Morozov <dmitriy@mrzv.org>
Mon, 30 Aug 2010 12:28:58 -0700 (2010-08-30)
branchdev
changeset 226 574a165c0a9c
parent 134 c270826fd4a8
permissions -rw-r--r--
Added output of essential cycles for any given input filtration
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
134
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     1
# Makefile for Sphinx documentation
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     2
#
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     3
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     4
# You can set these variables from the command line.
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     5
SPHINXOPTS    =
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     6
SPHINXBUILD   = sphinx-build
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     7
PAPER         =
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     8
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     9
# Internal variables.
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    10
PAPEROPT_a4     = -D latex_paper_size=a4
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    11
PAPEROPT_letter = -D latex_paper_size=letter
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    12
ALLSPHINXOPTS   = -d .build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    13
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    14
.PHONY: help clean html web pickle htmlhelp latex changes linkcheck
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    15
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    16
help:
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    17
	@echo "Please use \`make <target>' where <target> is one of"
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    18
	@echo "  html      to make standalone HTML files"
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    19
	@echo "  pickle    to make pickle files"
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    20
	@echo "  json      to make JSON files"
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    21
	@echo "  htmlhelp  to make HTML files and a HTML help project"
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    22
	@echo "  latex     to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    23
	@echo "  changes   to make an overview over all changed/added/deprecated items"
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    24
	@echo "  linkcheck to check all external links for integrity"
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    25
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    26
clean:
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    27
	-rm -rf .build/*
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    28
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    29
html:
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    30
	mkdir -p .build/html .build/doctrees
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    31
	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) .build/html
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    32
	@echo
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    33
	@echo "Build finished. The HTML pages are in .build/html."
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    34
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    35
pickle:
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    36
	mkdir -p .build/pickle .build/doctrees
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    37
	$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) .build/pickle
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    38
	@echo
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    39
	@echo "Build finished; now you can process the pickle files."
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    40
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    41
web: pickle
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    42
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    43
json:
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    44
	mkdir -p .build/json .build/doctrees
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    45
	$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) .build/json
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    46
	@echo
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    47
	@echo "Build finished; now you can process the JSON files."
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    48
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    49
htmlhelp:
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    50
	mkdir -p .build/htmlhelp .build/doctrees
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    51
	$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) .build/htmlhelp
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    52
	@echo
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    53
	@echo "Build finished; now you can run HTML Help Workshop with the" \
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    54
	      ".hhp project file in .build/htmlhelp."
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    55
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    56
latex:
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    57
	mkdir -p .build/latex .build/doctrees
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    58
	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) .build/latex
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    59
	@echo
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    60
	@echo "Build finished; the LaTeX files are in .build/latex."
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    61
	@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    62
	      "run these through (pdf)latex."
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    63
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    64
changes:
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    65
	mkdir -p .build/changes .build/doctrees
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    66
	$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) .build/changes
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    67
	@echo
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    68
	@echo "The overview file is in .build/changes."
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    69
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    70
linkcheck:
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    71
	mkdir -p .build/linkcheck .build/doctrees
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    72
	$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) .build/linkcheck
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    73
	@echo
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    74
	@echo "Link check complete; look for any errors in the above output " \
c270826fd4a8 Added documentation; for now mostly for the Python bindings
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    75
	      "or in .build/linkcheck/output.txt."