X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Makefile;h=65fab6802fabec0b6da8ff5f916562a5ec2f7f36;hb=8a69ae149fc97026263ffca2639d2614d37b500d;hp=12b9bd9684cb9383d922021a62cb31ddbf3821cb;hpb=77b3ab94d1f635b819a50b4cf5a9cfa250cf92a9;p=mimedecode.git diff --git a/Makefile b/Makefile index 12b9bd9..65fab68 100644 --- a/Makefile +++ b/Makefile @@ -1,32 +1,37 @@ +VERSION=$(shell python -c "from __version__ import __version__; print __version__") + +.PHONY: all all: docs sdist -DISTFILES = mimedecode.py \ -setup.py \ +DISTFILES = \ +ANNOUNCE \ +MANIFEST.in \ Makefile \ -Makefile.sgmlt \ Makefile.4xslt \ -MANIFEST.in \ -ANNOUNCE \ +Makefile.sgmlt \ +__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 -include Makefile.4xslt +include Makefile.xsltproc -CLEANFILES = mimedecode.pyc MANIFEST sdist +CLEANFILES = *.py[co] MANIFEST .PHONY: clean clean: @@ -34,4 +39,4 @@ clean: .PHONY: distclean distclean: clean - rm -rf dist sdist + rm -rf dist