6 SUBBUILDDIR = $(shell python -c 'import distutils.util, sys; print "lib.%s-%s" % (distutils.util.get_platform(), sys.version[0:3])')
7 BUILDDIR := $(BUILDDIR)/$(SUBBUILDDIR)
9 COVERAGE = $(or $(shell which coverage), $(shell which python-coverage), \
20 for i in `find "$(TEST)" -perm -u+x -type f`; do \
22 PYTHONPATH="$(BUILDDIR):$$PYTHONPATH" $$i || retval=$$?; \
27 for i in `find "$(TEST)" -perm -u+x -type f`; do \
29 PYTHONPATH="$(BUILDDIR):$$PYTHONPATH" $(COVERAGE) -x $$i; \
31 $(COVERAGE) -r -m `find "$(BUILDDIR)" -name \\*.py -type f`
36 rm -f `find -name \*.pyc` .coverage
44 .PHONY: clean distclean dist test coverage install