summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-03-12 19:19:42 +0100
committerhut <hut@lavabit.com>2010-03-12 19:19:42 +0100
commit76f8d548b055fad7f9652d23035d30c910ec4ca0 (patch)
tree84fb9a4b4aa9f0c276a2fed303549c056c6cfd4b /Makefile
parent766a5b6adb6fe568b2e2dbaa0b7c1bc94e535637 (diff)
downloadranger-76f8d548b055fad7f9652d23035d30c910ec4ca0.tar.gz
make install: catch an exception
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c93cb647..83ba7ca0 100644
--- a/Makefile
+++ b/Makefile
@@ -47,6 +47,10 @@ uninstall:
 	@echo '~/.ranger'
 
 install: compile
+	@if [ '$(DEST)' == '/ranger' ]; then \
+		echo 'Cannot find a suitable destination for the files.'; \
+		false; \
+	fi
 	@echo "Installing..."
 	cp ranger.py $(PREFIX)/bin/ranger
 	cp -ruT ranger $(DEST)