X-Git-Url: https://git.phdru.name/?p=mimedecode.git;a=blobdiff_plain;f=Makefile;h=4a90c042ae0a85dd765dbc1f0f7ba63b55c7791d;hp=6f0214cc2b4cba05acada8c1ecbf88640fb1ca9b;hb=HEAD;hpb=2229a1e4737c8af820e0cf554ee2c7a5a3713bbd diff --git a/Makefile b/Makefile index 6f0214c..4a90c04 100644 --- a/Makefile +++ b/Makefile @@ -1,36 +1,21 @@ -VERSION=$(shell python -c "from __version__ import __version__; print __version__") - .PHONY: all -all: docs sdist - -DISTFILES = \ -ANNOUNCE \ -INSTALL.txt \ -MANIFEST.in \ -Makefile \ -Makefile.4xslt \ -Makefile.sgmlt \ -Makefile.xsltproc \ -__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: + make -C docs html man text + -include Makefile.xsltproc +.PHONY: distr +distr: + ./mk-distr + + +.PHONY: test +test: + make -C test all CLEANFILES = *.py[co] MANIFEST @@ -38,7 +23,4 @@ CLEANFILES = *.py[co] MANIFEST .PHONY: clean clean: rm -f $(CLEANFILES) - -.PHONY: distclean -distclean: clean - rm -rf dist + make -C test clean