summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2017-11-19 14:10:37 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2017-11-19 14:10:37 +0100
commit9874fd3faf518e163bfbd1fd7fbf0087f3e89d3a (patch)
treeb31e690d45c0d171f648c6b58d1c027c5a53e5e5 /Makefile
parent659b310eed9e665d0f13d18d078848cae5acd2f6 (diff)
downloadpoezio-9874fd3faf518e163bfbd1fd7fbf0087f3e89d3a.tar.gz
poezio-9874fd3faf518e163bfbd1fd7fbf0087f3e89d3a.tar.bz2
poezio-9874fd3faf518e163bfbd1fd7fbf0087f3e89d3a.tar.xz
poezio-9874fd3faf518e163bfbd1fd7fbf0087f3e89d3a.zip
setup.py: Use $PYTHON instead of hardcoding python3.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6b901279..5745b57e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,9 @@
TMPDIR=/tmp/
+PYTHON ?= python3
+
all: Makefile
- python3 setup.py build_ext --inplace
+ $(PYTHON) setup.py build_ext --inplace
clean:
find ./ -name \*.pyc -delete
@@ -16,7 +18,7 @@ clean:
rm -f poezio/*.so
install: all
- python3 setup.py install --root=$(DESTDIR) --optimize=1
+ $(PYTHON) setup.py install --root=$(DESTDIR) --optimize=1
doc:
make -C doc/ html