]> git.phdru.name Git - mimedecode.git/commitdiff
Get version from mimedecode.py.
authorOleg Broytman <phd@phdru.name>
Sat, 1 Jan 2011 05:33:18 +0000 (05:33 +0000)
committerOleg Broytman <phd@phdru.name>
Sat, 1 Jan 2011 05:33:18 +0000 (05:33 +0000)
git-svn-id: file:///home/phd/archive/SVN/mimedecode@20 a778b35f-2f12-0410-a9f6-9b1356d76ba6

Makefile

index 1a84be3763197c4732f8ad5472fc943bf7cece2c..6984546f5a671f5935ce978db0be66f81b924266 100644 (file)
--- 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