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
commit70e12d3bcef0840347181aff5a661b21aaa49f97 (patch)
treed3d894a8e484f431733f1c3fa63fa5fbcffa2c52 /Makefile
parentcb2618965efaa6e2edd00a335f8d8e676e01b1fa (diff)
downloadpython-coveragepy-70e12d3bcef0840347181aff5a661b21aaa49f97.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 ce84d70..d02fb99 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