1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
.PHONY: all setup clean_dist distro clean install testsetup test
NAME=vcstools
VERSION=$(shell grep version ./src/vcstools/__version__.py | sed 's,version = ,,')
all:
echo "noop for debbuild"
setup:
echo "building version ${VERSION}"
clean_dist:
-rm -f MANIFEST
-rm -rf dist
-rm -rf deb_dist
-rm -fr src/vcstools.egg-info/
distro: clean_dist setup
python setup.py sdist
clean: clean_dist
echo "clean"
install: distro
sudo checkinstall python setup.py install
testsetup:
echo "running tests"
test: testsetup
nosetests --with-coverage --cover-package=vcstools --with-xunit
|