From 572438b85eff859c1ec623e07cdc4bcc2cca0595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Mon, 8 Jun 2015 09:36:12 +0200 Subject: [PATCH] install into DESTDIR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and use 'install' throughout (rather than 'mkdir') Signed-off-by: IOhannes m zmölnig --- makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index ca82f5e..0f22b16 100644 --- a/makefile +++ b/makefile @@ -69,9 +69,9 @@ version.o: .version version.sh $(filter-out version.d,$(DEPEND)) force: install: $(PRG) - mkdir -p $(sbindir) $(man8dir) - install $(PRG) $(sbindir) - install -p -m 644 -t $(man8dir) $(PRG:%=%.8) + install -p -m 755 -d $(DESTDIR)$(sbindir) $(DESTDIR)$(man8dir) + install $(PRG) $(DESTDIR)$(sbindir) + install -p -m 644 -t $(DESTDIR)$(man8dir) $(PRG:%=%.8) clean: rm -f $(OBJECTS) $(DEPEND)