From b4b3b0158eeebef38cb19d6ae9fe5627892d2fd1 Mon Sep 17 00:00:00 2001 From: ma Date: Thu, 30 Oct 2014 12:12:40 +0100 Subject: [PATCH] Makefile: use DESTDIR in install-bin --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 45ffc182a2..cc723d3a91 100644 --- a/Makefile +++ b/Makefile @@ -136,9 +136,9 @@ install-config: install-bin: @echo -e "\033[1m== Installing binary ==\033[0;0m" install -Dp -m0755 $(rearbin) $(DESTDIR)$(sbindir)/rear - sed -i -e 's,^CONFIG_DIR=.*,CONFIG_DIR="$(sysconfdir)/rear",' \ - -e 's,^SHARE_DIR=.*,SHARE_DIR="$(datadir)/rear",' \ - -e 's,^VAR_DIR=.*,VAR_DIR="$(localstatedir)/lib/rear",' \ + sed -i -e 's,^CONFIG_DIR=.*,CONFIG_DIR="$(DESTDIR)$(sysconfdir)/rear",' \ + -e 's,^SHARE_DIR=.*,SHARE_DIR="$(DESTDIR)$(datadir)/rear",' \ + -e 's,^VAR_DIR=.*,VAR_DIR="$(DESTDIR)$(localstatedir)/lib/rear",' \ $(DESTDIR)$(sbindir)/rear install-data: