From: Thierry Parmentelat Date: Thu, 15 Oct 2015 19:02:28 +0000 (+0200) Subject: Makefile almost similar X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=9bcab5f01a36287c70552b16ed6916f19a7b66bf;p=nepi.git Makefile almost similar --- diff --git a/Makefile b/Makefile index 1312f614..dfefc759 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +PYTHON = python3 SRCDIR = $(CURDIR)/src TESTDIR = $(CURDIR)/test TESTLIB = $(TESTDIR)/lib @@ -9,16 +10,16 @@ COVERAGE = $(or $(shell which coverage), $(shell which python-coverage), \ coverage) all: clean - PYTHONPATH="$(PYTHONPATH):$(SRCDIR)" ./setup.py build + PYTHONPATH="$(PYTHONPATH):$(SRCDIR)" $(PYTHON) ./setup.py build install: all - PYTHONPATH="$(PYTHONPATH):$(SRCDIR)" ./setup.py install + PYTHONPATH="$(PYTHONPATH):$(SRCDIR)" $(PYTHON) ./setup.py install test: all retval=0; \ for i in `find "$(TESTDIR)" -iname '*.py' -perm -u+x -type f`; do \ echo $$i; \ - PYTHONPATH="$(PYPATH)" python3 $$i -v || retval=$$?; \ + PYTHONPATH="$(PYPATH)" $(PYTHON) $$i -v || retval=$$?; \ done; exit $$retval ifeq ($(file),) @@ -27,7 +28,7 @@ test-one: else test-one: all echo $(file) $(case) - PYTHONPATH="$(PYPATH)" python3 $(file) $(case) + PYTHONPATH="$(PYPATH)" $(PYTHON) $(file) $(case) endif test-app: