X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Makefile;h=5ba230c26837f1f28510a2b851691e7fcdc889d5;hb=8d2e459bcceaea1530857ab58411e2e2426743a1;hp=cc1ddb8a274557d2f18820cc9f5817045b01e794;hpb=06204515308656fb4f08ebb96e636610ab7b7902;p=mimedecode.git diff --git a/Makefile b/Makefile index cc1ddb8..5ba230c 100644 --- a/Makefile +++ b/Makefile @@ -1,34 +1,27 @@ -all: docs sdist +.PHONY: all +all: docs test clean distr -DISTFILES = mimedecode.py \ -mimedecode1.py \ -setup.py \ -Makefile \ -Makefile.sgmlt \ -Makefile.4xslt \ -MANIFEST.in \ -ANNOUNCE \ -mimedecode.docbook \ -mimedecode.html \ -mimedecode.man \ -mimedecode.txt -sdist: dist/mimedecode-2.1.0.tar.gz - touch sdist +.PHONY: docs +docs: mimedecode.html mimedecode.man mimedecode.txt -dist/mimedecode-2.1.0.tar.gz: $(DISTFILES) - umask 022 && python setup.py sdist +include Makefile.xsltproc -docs: mimedecode.man mimedecode.txt mimedecode.html -include Makefile.4xslt +.PHONY: distr +distr: + ./mk-distr -CLEANFILES = mimedecode.pyc MANIFEST sdist +.PHONY: test +test: + make -C test all + +CLEANFILES = *.py[co] MANIFEST + +.PHONY: clean clean: rm -f $(CLEANFILES) - -distclean: clean - rm -rf dist sdist + make -C test clean