From 3c21ee4aef03e217780598d9deb4aca610469b70 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Sat, 24 May 2014 00:41:59 +0200 Subject: [PATCH] Add a 'dist' target --- Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 1bb21b7..2005cc3 100644 --- a/Makefile +++ b/Makefile @@ -19,22 +19,24 @@ $(DOCHTML)/index.html: $(MODNAME) $(RSTFILES) doc: $(DOCHTML)/index.html +dist: + fakeroot ./setup.py sdist + test: - for ver in 2.4 2.5 2.6 2.7 3.0 3.1 3.2 3.3 3.4; do \ + @for ver in 2.4 2.5 2.6 2.7 3.0 3.1 3.2 3.3 3.4; do \ if type python$$ver >/dev/null; then \ echo Testing with python$$ver; \ python$$ver ./setup.py test -q; \ - fi; \ + fi; \ done @if type pypy >/dev/null; then \ echo Testing with pypy; \ - pypy ./setup.py test -q; \ + pypy ./setup.py test -q; \ fi - clean: rm -rf $(DOCHTML) $(DOCTREES) rm -f $(MODNAME) rm -rf build -.PHONY: doc test clean +.PHONY: doc test clean dist -- 2.39.5