2 VERSION = $(shell sed -ne 's/__version__\s*=\s*"\(.*\)"/\1/p ' mic/__init__.py)
3 TAGVER = $(shell git describe --abbrev=0 --tags)
10 $(PYTHON) setup.py build
13 git archive --format=tar --prefix=$(PKGNAME)-$(VER)/ $(TAG) | tar xpf -
14 git show $(TAG) --oneline | head -1 > $(PKGNAME)-$(VER)/commit-id
15 rm -rf $(PKGNAME)-$(VER)/tests
16 tar zcpf $(PKGNAME)_$(VER).tar.gz $(PKGNAME)-$(VER)
17 rm -rf $(PKGNAME)-$(VER)
23 release: VER=$(TAGVER)
24 release: TAG=$(TAGVER)
28 rst2man doc/man.rst > doc/mic.1
31 $(PYTHON) setup.py install
34 $(PYTHON) setup.py develop
37 cd tests/ && $(PYTHON) suite.py