deb-python-steadymark/Makefile
Gabriel Falcao 7ccfa1c1dd first commit
2012-07-30 12:16:05 -04:00

23 lines
603 B
Makefile

all: test
filename=steadymark-`python -c 'import steadymark;print steadymark.version'`.tar.gz
export PYTHONPATH:= ${PWD}
test: clean
@echo "Running code examples from README.md as tests"
@python steadymark/__init__.py
clean:
@printf "Cleaning up files that are already in .gitignore... "
@for pattern in `cat .gitignore`; do rm -rf $$pattern; find . -name "$$pattern" -exec rm -rf {} \;; done
@echo "OK!"
release: test publish
@printf "Exporting to $(filename)... "
@tar czf $(filename) steadymark setup.py README.md COPYING
@echo "DONE!"
publish:
@python setup.py sdist register upload