X-Git-Url: https://git.phdru.name/?p=mimedecode.git;a=blobdiff_plain;f=Makefile;h=5ba230c26837f1f28510a2b851691e7fcdc889d5;hp=6984546f5a671f5935ce978db0be66f81b924266;hb=HEAD;hpb=ba635891c07e76745922a2ffa0d8620a9c6acf78 diff --git a/Makefile b/Makefile index 6984546..4a90c04 100644 --- a/Makefile +++ b/Makefile @@ -1,31 +1,21 @@ -VERSION=$(shell python -c "from mimedecode import _version; print _version") +.PHONY: all +all: docs test clean distr -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: docs +docs: + make -C docs html man text -.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 -include Makefile.xsltproc +.PHONY: test +test: + make -C test all CLEANFILES = *.py[co] MANIFEST @@ -33,7 +23,4 @@ CLEANFILES = *.py[co] MANIFEST .PHONY: clean clean: rm -f $(CLEANFILES) - -.PHONY: distclean -distclean: clean - rm -rf dist + make -C test clean