X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;fp=Makefile;h=dfefc759d0449619148ab64cec7832e5994796c9;hb=9bcab5f01a36287c70552b16ed6916f19a7b66bf;hp=1312f6140f8566dadef648392ac66ec4498caf83;hpb=8bd8f3f87712de4559e751f61c32106e6b569008;p=nepi.git 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: