From: Oleg Broytman Date: Sat, 1 Jan 2011 05:33:18 +0000 (+0000) Subject: Get version from mimedecode.py. X-Git-Tag: v2.3.2~76 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=ba635891c07e76745922a2ffa0d8620a9c6acf78;p=mimedecode.git Get version from mimedecode.py. git-svn-id: file:///home/phd/archive/SVN/mimedecode@20 a778b35f-2f12-0410-a9f6-9b1356d76ba6 --- diff --git a/Makefile b/Makefile index 1a84be3..6984546 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,10 +16,10 @@ 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) +dist/mimedecode-$(VERSION).tar.gz: $(DISTFILES) umask 022 && chmod a+rX $(DISTFILES) && python setup.py sdist .PHONY: docs