X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Makefile;h=6f0214cc2b4cba05acada8c1ecbf88640fb1ca9b;hb=2229a1e4737c8af820e0cf554ee2c7a5a3713bbd;hp=1a84be3763197c4732f8ad5472fc943bf7cece2c;hpb=c590ad79f77cea9e95c98eb915b7c898048d8c8f;p=mimedecode.git diff --git a/Makefile b/Makefile index 1a84be3..6f0214c 100644 --- a/Makefile +++ b/Makefile @@ -1,24 +1,31 @@ +VERSION=$(shell python -c "from __version__ import __version__; print __version__") + +.PHONY: all all: docs sdist -DISTFILES = mimedecode.py \ -setup.py \ +DISTFILES = \ +ANNOUNCE \ +INSTALL.txt \ +MANIFEST.in \ Makefile \ -Makefile.sgmlt \ Makefile.4xslt \ -MANIFEST.in \ -ANNOUNCE \ +Makefile.sgmlt \ +Makefile.xsltproc \ +__version__.py \ mimedecode.docbook \ mimedecode.html \ mimedecode.man \ -mimedecode.txt +mimedecode.py \ +mimedecode.txt \ +setup.py .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