X-Git-Url: https://git.phdru.name/?p=mimedecode.git;a=blobdiff_plain;f=Makefile;h=4a90c042ae0a85dd765dbc1f0f7ba63b55c7791d;hp=d9ad6972b84884445a64b3acbe5cb8536db2ca63;hb=HEAD;hpb=47586f2b33803bf4483ccdbba5f0c17bb6117366 diff --git a/Makefile b/Makefile index d9ad697..4a90c04 100644 --- a/Makefile +++ b/Makefile @@ -1,31 +1,21 @@ -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: + make -C docs html man text -.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 +.PHONY: distr +distr: + ./mk-distr -.PHONY: docs -docs: mimedecode.man mimedecode.txt mimedecode.html -include Makefile.xsltproc +.PHONY: test +test: + make -C test all CLEANFILES = *.py[co] MANIFEST @@ -33,7 +23,4 @@ CLEANFILES = *.py[co] MANIFEST .PHONY: clean clean: rm -f $(CLEANFILES) - -.PHONY: distclean -distclean: clean - rm -rf dist + make -C test clean