From ec598fc7e3919abe2b157592c9a42acaeb3c2e7c Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 17 May 2010 22:46:42 +0200 Subject: make: added DESTDIR to Makefile Patch by David Woodfall --- Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 1f75728c..9cc822a1 100644 --- a/Makefile +++ b/Makefile @@ -58,15 +58,15 @@ install: false; \ fi @echo "Installing $(NAME) version $(VERSION)..." - @mkdir -p $(PREFIX)/bin - cp -f ranger.py $(PREFIX)/bin/ranger - @mkdir -p $(PYTHON_SITE_DEST) - cp -fruT ranger $(PYTHON_SITE_DEST)/ranger - @chmod 755 $(PREFIX)/bin/ranger - @chmod -R +rX $(PYTHON_SITE_DEST)/ranger - @mkdir -p $(PREFIX)$(MANPREFIX)/man1 - cp -f doc/ranger.1 $(PREFIX)$(MANPREFIX)/man1/ranger.1 - @chmod 644 $(PREFIX)$(MANPREFIX)/man1/ranger.1 + @mkdir -p $(DESTDIR)$(PREFIX)/bin + cp -f ranger.py $(DESTDIR)$(PREFIX)/bin/ranger + @mkdir -p $(DESTDIR)$(PYTHON_SITE_DEST) + cp -fruT ranger $(DESTDIR)$(PYTHON_SITE_DEST)/ranger + @chmod 755 $(DESTDIR)$(PREFIX)/bin/ranger + @chmod -R +rX $(DESTDIR)$(PYTHON_SITE_DEST)/ranger + @mkdir -p $(DESTDIR)$(PREFIX)$(MANPREFIX)/man1 + cp -f doc/ranger.1 $(DESTDIR)$(PREFIX)$(MANPREFIX)/man1/ranger.1 + @chmod 644 $(DESTDIR)$(PREFIX)$(MANPREFIX)/man1/ranger.1 uninstall: rm -f $(PREFIX)/bin/ranger -- cgit 1.4.1-2-gfad0