From a326e29f69e37d5ab4c65c7ca9a8ceb043e91996 Mon Sep 17 00:00:00 2001 From: John Chilton <jmchilton@gmail.com> Date: Fri, 6 Mar 2015 09:19:12 -0500 Subject: [PATCH] Makefile improvements. Use .venv for all Python operations if available. --- Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 702cbf82..b60c9bf7 100644 --- a/Makefile +++ b/Makefile @@ -29,24 +29,24 @@ clean-tests: rm -fr htmlcov/ lint: - flake8 --exclude test_tool_deps.py --max-complexity 9 pulsar test + if [ -f .venv/bin/activate ]; then . .venv/bin/activate; fi; flake8 --exclude test_tool_deps.py --max-complexity 9 pulsar test tests: - nosetests + if [ -f .venv/bin/activate ]; then . .venv/bin/activate; fi; nosetests coverage: tests - coverage html + if [ -f .venv/bin/activate ]; then . .venv/bin/activate; fi; coverage html open coverage_html_report/index.html || xdg-open coverage_html_report/index.html docs: rm -f docs/pulsar.rst rm -f docs/galaxy.rst rm -f docs/modules.rst - sphinx-apidoc -f -o docs/ pulsar - sphinx-apidoc -f -o docs/ galaxy + if [ -f .venv/bin/activate ]; then . .venv/bin/activate; fi; sphinx-apidoc -f -o docs/ pulsar + if [ -f .venv/bin/activate ]; then . .venv/bin/activate; fi; sphinx-apidoc -f -o docs/ galaxy cp docs/fixed_modules.rst docs/modules.rst - $(MAKE) -C docs clean - $(MAKE) -C docs html + if [ -f .venv/bin/activate ]; then . .venv/bin/activate; fi; $(MAKE) -C docs clean + if [ -f .venv/bin/activate ]; then . .venv/bin/activate; fi; $(MAKE) -C docs html open-docs: docs open docs/_build/html/index.html || xdg-open docs/_build/html/index.html -- GitLab