summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2010-08-20 16:03:34 -0400
committerNed Batchelder <ned@nedbatchelder.com>2010-08-20 16:03:34 -0400
commitdc7fb7d0695d8d9de763db264bad317682040167 (patch)
tree1c07957a3f66a18f12f7c15e27b9cd10d4d33b81 /Makefile
parent48f592beb3f85fbe4319b2206f941c6b9a6d0e08 (diff)
downloadpython-coveragepy-git-dc7fb7d0695d8d9de763db264bad317682040167.tar.gz
Make it possible to have beta docs in a different place than the real docs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index ce84d701..d02fb990 100644
--- a/Makefile
+++ b/Makefile
@@ -67,27 +67,28 @@ uninstall:
SPHINXBUILD = sphinx-build
SPHINXOPTS = -a -E doc
+SPHINXPXCMD = $(SPHINXBUILD) -b px $(SPHINXOPTS) doc/_build/px
WEBHOME = c:/ned/web/stellated/pages/code/coverage
px:
- $(SPHINXBUILD) -b px $(SPHINXOPTS) doc/_build/px
+ $(SPHINXPXCMD)
+ rm doc/_build/px/search.px
+
+pxbeta:
+ COVERAGE_DOC_ROOT=/code/coverage/beta/ $(SPHINXPXCMD)
rm doc/_build/px/search.px
- @echo
- @echo "Build finished. The PX files are in doc/_build/px."
dochtml:
$(SPHINXBUILD) -b html $(SPHINXOPTS) doc/_build/html
@echo
@echo "Build finished. The HTML pages are in doc/_build/html."
-publish:
+publish: px
rm -f $(WEBHOME)/*.px
cp doc/_build/px/*.px $(WEBHOME)
rm -f $(WEBHOME)/sample_html/*.*
cp doc/sample_html/*.* $(WEBHOME)/sample_html
-publishbeta:
+publishbeta: pxbeta
rm -f $(WEBHOME)/beta/*.px
cp doc/_build/px/*.px $(WEBHOME)/beta
- rm -f $(WEBHOME)/beta/sample_html/*.*
- cp doc/sample_html/*.* $(WEBHOME)/beta/sample_html