kombu/Makefile

71 lines
1.2 KiB
Makefile
Raw Normal View History

2014-05-27 13:33:11 +00:00
PYTHON=python
SPHINX_DIR="docs/"
2016-04-07 22:59:26 +00:00
SPHINX_BUILDDIR="${SPHINX_DIR}/_build"
2014-05-27 13:33:11 +00:00
README="README.rst"
README_SRC="docs/templates/readme.txt"
CONTRIBUTING_SRC="docs/contributing.rst"
2016-04-08 01:51:22 +00:00
SPHINX2RST="sphinx2rst"
2014-05-27 13:33:11 +00:00
SPHINX_HTMLDIR = "${SPHINX_BUILDDIR}/html"
html:
2016-04-08 21:03:29 +00:00
(cd "$(SPHINX_DIR)"; $(MAKE) html)
2014-05-27 13:33:11 +00:00
mv "$(SPHINX_HTMLDIR)" Documentation
docsclean:
-rm -rf "$(SPHINX_BUILDDIR)"
htmlclean:
2016-04-08 21:03:29 +00:00
(cd "$(SPHINX_DIR)"; $(MAKE) clean)
2014-05-27 13:33:11 +00:00
apicheck:
2016-04-08 21:03:29 +00:00
(cd "$(SPHINX_DIR)"; $(MAKE) apicheck)
2014-05-27 13:33:11 +00:00
flakecheck:
flake8 kombu
flakediag:
-$(MAKE) flakecheck
flakepluscheck:
flakeplus --2.7 kombu
2014-05-27 13:33:11 +00:00
flakeplusdiag:
-$(MAKE) flakepluscheck
flakes: flakediag flakeplusdiag
readmeclean:
-rm -f $(README)
readmecheck:
iconv -f ascii -t ascii $(README) >/dev/null
$(README):
2016-04-08 01:51:22 +00:00
$(SPHINX2RST) $(README_SRC) --ascii > $@
2014-05-27 13:33:11 +00:00
readme: readmeclean $(README) readmecheck
test:
nosetests -xv kombu.tests
cov:
nosetests -xv kombu.tests --with-coverage --cover-html --cover-branch
removepyc:
-find . -type f -a \( -name "*.pyc" -o -name "*$$py.class" \) | xargs rm
-find . -type d -name "__pycache__" | xargs rm -r
gitclean:
git clean -xdn
gitcleanforce:
git clean -xdf
2016-04-08 21:03:29 +00:00
tox: removepyc
tox
distcheck: flakecheck apicheck readmecheck test gitclean
2014-05-27 13:33:11 +00:00
dist: readme docsclean gitcleanforce removepyc