X-Git-Url: https://git.phdru.name/?p=mimedecode.git;a=blobdiff_plain;f=Makefile;h=5ba230c26837f1f28510a2b851691e7fcdc889d5;hp=1a84be3763197c4732f8ad5472fc943bf7cece2c;hb=HEAD;hpb=c590ad79f77cea9e95c98eb915b7c898048d8c8f diff --git a/Makefile b/Makefile index 1a84be3..4a90c04 100644 --- a/Makefile +++ b/Makefile @@ -1,29 +1,21 @@ -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-2.1.0.tar.gz - -.PHONY: dist -dist/mimedecode-2.1.0.tar.gz: $(DISTFILES) - umask 022 && chmod a+rX $(DISTFILES) && python setup.py sdist +.PHONY: all +all: docs test clean distr + .PHONY: docs -docs: mimedecode.man mimedecode.txt mimedecode.html +docs: + make -C docs html man text + + +.PHONY: distr +distr: + ./mk-distr -include Makefile.xsltproc + +.PHONY: test +test: + make -C test all CLEANFILES = *.py[co] MANIFEST @@ -31,7 +23,4 @@ CLEANFILES = *.py[co] MANIFEST .PHONY: clean clean: rm -f $(CLEANFILES) - -.PHONY: distclean -distclean: clean - rm -rf dist + make -C test clean