2 VERSION = $(shell cat VERSION)
3 TAGVER = $(shell cat VERSION | sed -e "s/\([0-9\.]*\).*/\1/")
7 ifeq ($(VERSION), $(TAGVER))
20 $(PYTHON) setup.py build
23 git archive --format=tar --prefix=$(PKGNAME)-$(TAGVER)/ $(TAG) | tar xpf -
24 git show $(TAG) --oneline | head -1 > $(PKGNAME)-$(TAGVER)/commit-id
25 mkdir $(PKGNAME)-$(TAGVER)/doc; mv mic.1 $(PKGNAME)-$(TAGVER)/doc
26 rm -rf $(PKGNAME)-$(TAGVER)/tests
29 tar jcpf $(PKGNAME)-$(TAGVER).tar.bz2 $(PKGNAME)-$(TAGVER)
30 rm -rf $(PKGNAME)-$(TAGVER)
33 tar zcpf $(PKGNAME)-$(TAGVER).tar.gz $(PKGNAME)-$(TAGVER)
34 rm -rf $(PKGNAME)-$(TAGVER)
40 $(PYTHON) setup.py install --prefix=$(DESTDIR)/$(PREFIX)
43 $(PYTHON) setup.py develop
46 cd tests/unittest/ && $(PYTHON) suite.py
51 rm -f mic/__version__.*