X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Makefile;h=5ba230c26837f1f28510a2b851691e7fcdc889d5;hb=049f238d8b23e2ab7f543b33d52dd2544ffa7b22;hp=6984546f5a671f5935ce978db0be66f81b924266;hpb=ba635891c07e76745922a2ffa0d8620a9c6acf78;p=mimedecode.git diff --git a/Makefile b/Makefile index 6984546..5ba230c 100644 --- a/Makefile +++ b/Makefile @@ -1,31 +1,22 @@ -VERSION=$(shell python -c "from mimedecode import _version; print _version") +.PHONY: all +all: docs test clean distr -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: docs +docs: mimedecode.html mimedecode.man mimedecode.txt -.PHONY: sdist -sdist: dist/mimedecode-$(VERSION).tar.gz +include Makefile.xsltproc -.PHONY: dist -dist/mimedecode-$(VERSION).tar.gz: $(DISTFILES) - umask 022 && chmod a+rX $(DISTFILES) && python setup.py sdist -.PHONY: docs -docs: mimedecode.man mimedecode.txt mimedecode.html +.PHONY: distr +distr: + ./mk-distr -include Makefile.xsltproc + +.PHONY: test +test: + make -C test all CLEANFILES = *.py[co] MANIFEST @@ -33,7 +24,4 @@ CLEANFILES = *.py[co] MANIFEST .PHONY: clean clean: rm -f $(CLEANFILES) - -.PHONY: distclean -distclean: clean - rm -rf dist + make -C test clean