X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Makefile;h=d748c00409cd6758f91229caddf1ed8485319ad6;hb=447050247973e721ede0065cb08d2b565ca0d47a;hp=6984546f5a671f5935ce978db0be66f81b924266;hpb=ba635891c07e76745922a2ffa0d8620a9c6acf78;p=mimedecode.git diff --git a/Makefile b/Makefile index 6984546..d748c00 100644 --- a/Makefile +++ b/Makefile @@ -1,29 +1,13 @@ -VERSION=$(shell python -c "from mimedecode import _version; print _version") +.PHONY: all +all: distr docs -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 +.PHONY: distr +distr: + ./mk-distr .PHONY: docs -docs: mimedecode.man mimedecode.txt mimedecode.html +docs: mimedecode.html mimedecode.man mimedecode.txt include Makefile.xsltproc @@ -33,7 +17,3 @@ CLEANFILES = *.py[co] MANIFEST .PHONY: clean clean: rm -f $(CLEANFILES) - -.PHONY: distclean -distclean: clean - rm -rf dist