X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Makefile;h=5ba230c26837f1f28510a2b851691e7fcdc889d5;hb=464264ba922a7ce7875eb4364e0cac63c8d348c7;hp=12b9bd9684cb9383d922021a62cb31ddbf3821cb;hpb=77b3ab94d1f635b819a50b4cf5a9cfa250cf92a9;p=mimedecode.git diff --git a/Makefile b/Makefile index 12b9bd9..5ba230c 100644 --- a/Makefile +++ b/Makefile @@ -1,37 +1,27 @@ -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: mimedecode.html mimedecode.man mimedecode.txt + +include Makefile.xsltproc + -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) - -.PHONY: distclean -distclean: clean - rm -rf dist sdist + make -C test clean