X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=b6e12936daa64095475585aff7274abfa766f16c;hb=51b00f3c1674ff5995e11d9da108ce3da96e1bb2;hp=501efb64819e4fcb13faacf769609477b5db30cd;hpb=4f1fba5115cee2ffc2ab769511414a5613d507d5;p=mimedecode.git diff --git a/Makefile b/Makefile index 501efb6..b6e1293 100644 --- a/Makefile +++ b/Makefile @@ -1,39 +1,19 @@ -VERSION=$(shell python -c "from mimedecode import _version; print _version") - -all: docs sdist - -DISTFILES = mimedecode.py \ -setup.py \ -Makefile \ -Makefile.sgmlt \ -Makefile.4xslt \ -MANIFEST.in \ -ANNOUNCE \ -mimedecode.docbook \ -mimedecode.html \ -mimedecode.man \ -mimedecode.txt - -.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 +.PHONY: all +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