From 76f8d548b055fad7f9652d23035d30c910ec4ca0 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 12 Mar 2010 19:19:42 +0100 Subject: make install: catch an exception --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') 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) -- cgit 1.4.1-2-gfad0