From ba635891c07e76745922a2ffa0d8620a9c6acf78 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 1 Jan 2011 05:33:18 +0000 Subject: [PATCH] Get version from mimedecode.py. git-svn-id: file:///home/phd/archive/SVN/mimedecode@20 a778b35f-2f12-0410-a9f6-9b1356d76ba6 --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.39.5