From 0de8aa91f48cbaf4765ae6ae2232966aeb62dcf1 Mon Sep 17 00:00:00 2001 From: Brian Gernhardt Date: Fri, 30 May 2014 23:29:27 -0400 Subject: [PATCH] build: avoid non-portable install -D BSD install doesn't understand the -D option. Use a separate install command to create the directory (with the -d option) before installing the file. Signed-off-by: Brian Gernhardt Signed-off-by: Felipe Contreras --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cdb2f35..ca4246a 100644 --- a/Makefile +++ b/Makefile @@ -19,9 +19,11 @@ clean: D = $(DESTDIR) install: install-doc - install -D -m 755 git-remote-hg $(D)$(bindir)/git-remote-hg + install -d -m 755 $(D)$(bindir)/ + install -m 755 git-remote-hg $(D)$(bindir)/git-remote-hg install-doc: doc - install -D -m 644 doc/git-remote-hg.1 $(D)$(mandir)/git-remote-hg.1 + install -d -m 755 $(D)$(mandir)/ + install -m 644 doc/git-remote-hg.1 $(D)$(mandir)/git-remote-hg.1 .PHONY: all test install install-doc clean