X-Git-Url: https://git.phdru.name/?p=mimedecode.git;a=blobdiff_plain;f=Makefile;h=5ba230c26837f1f28510a2b851691e7fcdc889d5;hp=501efb64819e4fcb13faacf769609477b5db30cd;hb=972bae8625e655e34170c588561eed078ceb37d9;hpb=4f1fba5115cee2ffc2ab769511414a5613d507d5 diff --git a/Makefile b/Makefile index 501efb6..5ba230c 100644 --- a/Makefile +++ b/Makefile @@ -1,31 +1,22 @@ -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: mimedecode.html mimedecode.man mimedecode.txt -.PHONY: sdist -sdist: dist/mimedecode-$(VERSION).tar.gz +include Makefile.xsltproc -.PHONY: dist -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 +.PHONY: distr +distr: + ./mk-distr -include Makefile.xsltproc + +.PHONY: test +test: + make -C test all CLEANFILES = *.py[co] MANIFEST @@ -33,7 +24,4 @@ CLEANFILES = *.py[co] MANIFEST .PHONY: clean clean: rm -f $(CLEANFILES) - -.PHONY: distclean -distclean: clean - rm -rf dist + make -C test clean