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
28 tar jcpf $(PKGNAME)-$(TAGVER).tar.bz2 $(PKGNAME)-$(TAGVER)
29 rm -rf $(PKGNAME)-$(TAGVER)
32 tar zcpf $(PKGNAME)-$(TAGVER).tar.gz $(PKGNAME)-$(TAGVER)
33 rm -rf $(PKGNAME)-$(TAGVER)
39 $(PYTHON) setup.py install --prefix=$(DESTDIR)/$(PREFIX)
42 $(PYTHON) setup.py develop
45 cd tests/unittest/ && $(PYTHON) suite.py
50 rm -f mic/__version__.*