COVERAGE = $(or $(shell which coverage), $(shell which python-coverage), \
coverage)
-all:
+all: clean
PYTHONPATH="$(PYTHONPATH):$(SRCDIR)" ./setup.py build
install: all
test: all
retval=0; \
for i in `find "$(TESTDIR)" -iname '*.py' -perm -u+x -type f`; do \
- @echo $$i; \
+ echo $$i; \
PYTHONPATH="$(PYPATH)" $$i -v || retval=$$?; \
done; exit $$retval
test-one: all
- @echo $(file) $(case)
+ echo $(file) $(case)
PYTHONPATH="$(PYPATH)" python $(file) $(case)
coverage: all
rm -f .coverage
clean:
- ./setup.py clean
rm -f `find -name \*.pyc` .coverage *.pcap
+ rm -rf "$(BUILDDIR)"
distclean: clean
rm -rf "$(DISTDIR)"