X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Makefile;h=b6e12936daa64095475585aff7274abfa766f16c;hb=9c35fa7761509941014db31c46ad7a6e5a6e8817;hp=6f0214cc2b4cba05acada8c1ecbf88640fb1ca9b;hpb=2229a1e4737c8af820e0cf554ee2c7a5a3713bbd;p=mimedecode.git diff --git a/Makefile b/Makefile index 6f0214c..b6e1293 100644 --- a/Makefile +++ b/Makefile @@ -1,44 +1,19 @@ -VERSION=$(shell python -c "from __version__ import __version__; print __version__") - .PHONY: all -all: docs sdist - -DISTFILES = \ -ANNOUNCE \ -INSTALL.txt \ -MANIFEST.in \ -Makefile \ -Makefile.4xslt \ -Makefile.sgmlt \ -Makefile.xsltproc \ -__version__.py \ -mimedecode.docbook \ -mimedecode.html \ -mimedecode.man \ -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 --formats=bztar +all: docs distr .PHONY: docs -docs: mimedecode.man mimedecode.txt mimedecode.html +docs: mimedecode.html mimedecode.man mimedecode.txt include Makefile.xsltproc +.PHONY: distr +distr: + ./mk-distr + CLEANFILES = *.py[co] MANIFEST .PHONY: clean clean: rm -f $(CLEANFILES) - -.PHONY: distclean -distclean: clean - rm -rf dist