X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Makefile;h=5ba230c26837f1f28510a2b851691e7fcdc889d5;hb=bbd06d012e0105bc432532036c1cfc91732a530d;hp=65fab6802fabec0b6da8ff5f916562a5ec2f7f36;hpb=8a69ae149fc97026263ffca2639d2614d37b500d;p=mimedecode.git diff --git a/Makefile b/Makefile index 65fab68..5ba230c 100644 --- a/Makefile +++ b/Makefile @@ -1,42 +1,27 @@ -VERSION=$(shell python -c "from __version__ import __version__; print __version__") - .PHONY: all -all: docs sdist - -DISTFILES = \ -ANNOUNCE \ -MANIFEST.in \ -Makefile \ -Makefile.4xslt \ -Makefile.sgmlt \ -__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 test clean 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 + + +.PHONY: test +test: + make -C test all + + CLEANFILES = *.py[co] MANIFEST .PHONY: clean clean: rm -f $(CLEANFILES) - -.PHONY: distclean -distclean: clean - rm -rf dist + make -C test clean