about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorWojciech Siewierski <wojciech.siewierski@onet.pl>2018-12-29 16:41:36 +0100
committerWojciech Siewierski <wojciech.siewierski@onet.pl>2018-12-29 16:41:36 +0100
commita65a26958d0f1bf39cb3ff88a207f0fcde3dfdbd (patch)
tree680eb52b057f1579e809f532a5641a62a3f37f69 /Makefile
parent18428527aaa0c7675391339bc613a10fb08d3c5c (diff)
downloadranger-a65a26958d0f1bf39cb3ff88a207f0fcde3dfdbd.tar.gz
Support the PREFIX flag in "make install"
Before that it was necessary to use setup.py directly.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 79b4f9d4..975f9781 100644
--- a/Makefile
+++ b/Makefile
@@ -55,7 +55,8 @@ help:
 
 install:
 	$(PYTHON) setup.py install $(SETUPOPTS) \
-		'--root=$(DESTDIR)' --optimize=$(PYOPTIMIZE)
+		'--prefix=$(PREFIX)' '--root=$(DESTDIR)' \
+		--optimize=$(PYOPTIMIZE)
 
 compile: clean
 	PYTHONOPTIMIZE=$(PYOPTIMIZE) $(PYTHON) -m compileall -q ranger