X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=6f0214cc2b4cba05acada8c1ecbf88640fb1ca9b;hb=65fa17744c1d2b727283b53316d45f9b4534bdd8;hp=6984546f5a671f5935ce978db0be66f81b924266;hpb=ba635891c07e76745922a2ffa0d8620a9c6acf78;p=mimedecode.git diff --git a/Makefile b/Makefile index 6984546..6f0214c 100644 --- a/Makefile +++ b/Makefile @@ -1,26 +1,31 @@ -VERSION=$(shell python -c "from mimedecode import _version; print _version") +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-$(VERSION).tar.gz .PHONY: dist dist/mimedecode-$(VERSION).tar.gz: $(DISTFILES) - umask 022 && chmod a+rX $(DISTFILES) && python setup.py sdist + umask 022 && chmod a+rX $(DISTFILES) && python setup.py sdist --formats=bztar .PHONY: docs docs: mimedecode.man mimedecode.txt mimedecode.html