From caecfc7c80013506be108c22445b5d8ee7682744 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Tue, 24 Jul 2018 22:29:07 +0200 Subject: [PATCH] Makefile: move list of python versions to a variable This way, it can be overridden from the command line, to allow a more targeted test/benchmark. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 62c035d..2fcebad 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,7 @@ ALLSPHINXOPTS = -d $(DOCTREES) $(SPHINXOPTS) $(DOCDIR) MODNAME = xattr.so RSTFILES = doc/index.rst doc/module.rst NEWS README.rst doc/conf.py +PYVERS = 2.4 2.5 2.6 2.7 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7 all: doc test @@ -23,7 +24,7 @@ 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 3.5; do \ + @for ver in $(PYVERS); do \ for flavour in "" "-dbg"; do \ if type python$$ver$$flavour >/dev/null; then \ echo Testing with python$$ver$$flavour; \ @@ -40,7 +41,7 @@ benchmark: $(MODNAME) @set -e; \ TESTFILE=`mktemp`;\ trap 'rm $$TESTFILE' EXIT; \ - for ver in 2.4 2.5 2.6 2.7 3.0 3.1 3.2 3.3 3.4 3.5; do \ + for ver in $(PYVERS) ; do \ if type python$$ver >/dev/null; then \ echo Benchmarking with python$$ver; \ python$$ver ./setup.py build -q; \ -- 2.39.2