X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=d9ad6972b84884445a64b3acbe5cb8536db2ca63;hb=f8f5f93648abcaaa12ab2a4423ad0864479e6bc4;hp=1a84be3763197c4732f8ad5472fc943bf7cece2c;hpb=c590ad79f77cea9e95c98eb915b7c898048d8c8f;p=mimedecode.git diff --git a/Makefile b/Makefile index 1a84be3..d9ad697 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,6 @@ +VERSION=$(shell python -c "from mimedecode import __version__; print __version__") + all: docs sdist DISTFILES = mimedecode.py \ @@ -14,11 +16,11 @@ mimedecode.man \ mimedecode.txt .PHONY: sdist -sdist: dist/mimedecode-2.1.0.tar.gz +sdist: dist/mimedecode-$(VERSION).tar.gz .PHONY: dist -dist/mimedecode-2.1.0.tar.gz: $(DISTFILES) - umask 022 && chmod a+rX $(DISTFILES) && python setup.py sdist +dist/mimedecode-$(VERSION).tar.gz: $(DISTFILES) + umask 022 && chmod a+rX $(DISTFILES) && python setup.py sdist --formats=bztar .PHONY: docs docs: mimedecode.man mimedecode.txt mimedecode.html