Mercurial > mxd2map
comparison doku/Makefile @ 219:f13f51627f07
Adopted Makefiles to build documentation as well
author | Stephan Holl <stephan.holl@intevation.de> |
---|---|
date | Wed, 27 Jul 2011 09:16:00 +0200 |
parents | 43f1cbdcd597 |
children | 656da3f693b8 |
comparison
equal
deleted
inserted
replaced
218:fb1ffd385115 | 219:f13f51627f07 |
---|---|
5 SPHINXOPTS = | 5 SPHINXOPTS = |
6 SPHINXBUILD = sphinx-build | 6 SPHINXBUILD = sphinx-build |
7 PAPER = | 7 PAPER = |
8 BUILDDIR = build | 8 BUILDDIR = build |
9 MAKE = make | 9 MAKE = make |
10 WEBSITE = ../website/documentation | |
10 | 11 |
11 # Internal variables. | 12 # Internal variables. |
12 PAPEROPT_a4 = -D latex_paper_size=a4 | 13 PAPEROPT_a4 = -D latex_paper_size=a4 |
13 PAPEROPT_letter = -D latex_paper_size=letter | 14 PAPEROPT_letter = -D latex_paper_size=letter |
14 ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source | 15 ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source |
130 | 131 |
131 doctest: | 132 doctest: |
132 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest | 133 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest |
133 @echo "Testing of doctests in the sources finished, look at the " \ | 134 @echo "Testing of doctests in the sources finished, look at the " \ |
134 "results in $(BUILDDIR)/doctest/output.txt." | 135 "results in $(BUILDDIR)/doctest/output.txt." |
136 | |
137 online: html | |
138 rm -rf $(WEBSITE) && mkdir -p $(WEBSITE) && cp -r build/html/* $(WEBSITE) |