Source reconstructed at patch state 1 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
| 1 |
COVERAGE?=python-coverage |
| 2 |
PREFIX=/usr/local |
| 3 |
export PREFIX |
| 4 |
PYTHON?=python |
| 5 |
|
| 6 |
all: build |
| 7 |
|
| 8 |
build: |
| 9 |
$(PYTHON) setup.py build |
| 10 |
|
| 11 |
check: test |
| 12 |
|
| 13 |
clean: |
| 14 |
-$(PYTHON) setup.py clean --all |
| 15 |
find . -not \( -path '*/.hg/*' -o -path '*/.git/*' \) \ |
| 16 |
\( -name '*.py[cdo]' -o -name '*.err' -o \ |
| 17 |
-name '*,cover' -o -name __pycache__ \) -prune \ |
| 18 |
-exec rm -rf '{}' ';' |
| 19 |
rm -rf dist build htmlcov |
| 20 |
rm -f MANIFEST .coverage cram.xml |
| 21 |
|
| 22 |
dist: |
| 23 |
TAR_OPTIONS="--owner=root --group=root --mode=u+w,go-w,a+rX-s" \ |
| 24 |
$(PYTHON) setup.py -q sdist |
| 25 |
|
| 26 |
install: build |
| 27 |
$(PYTHON) setup.py install --prefix="$(PREFIX)" --force |
| 28 |
|
| 29 |
quicktest: |
| 30 |
PYTHON=$(PYTHON) PYTHONPATH=`pwd` scripts/cram $(TESTOPTS) tests |
| 31 |
|
| 32 |
test: |
| 33 |
$(COVERAGE) erase |
| 34 |
COVERAGE=$(COVERAGE) PYTHON=$(PYTHON) PYTHONPATH=`pwd` scripts/cram \ |
| 35 |
$(TESTOPTS) tests |
| 36 |
$(COVERAGE) report --fail-under=100 |
| 37 |
|
| 38 |
.PHONY: all build check clean install dist quicktest test |