X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Makefile;h=21100c9f800837d94020eb208d221eb670c39cad;hb=5cf0e627783e9e4ddd4e3e7efd9346f873c73eee;hp=58d8bcfdab1515a70d5707dba765655df6aeea7f;hpb=93e3f055dce57cca7b6c6b398217b5fff9b086bb;p=mimedecode.git diff --git a/Makefile b/Makefile index 58d8bcf..21100c9 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,7 @@ +VERSION=$(shell python -c "from mimedecode import __version__; print __version__") + +.PHONY: all all: docs sdist DISTFILES = mimedecode.py \ @@ -14,16 +17,16 @@ 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) - 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 = *.py[co] MANIFEST