From 9eac99cfd85c368ba88306f8f9af89e6ac6c605e Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Fri, 31 Jul 2015 13:11:32 +0800 Subject: [PATCH] Makefile: be compatible with BSD and OS X --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 58ec176..5bc5738 100644 --- a/Makefile +++ b/Makefile @@ -15,8 +15,10 @@ build-no-git: INSTALL = $(PREFIX)/bin/exa $(INSTALL): - install -Dsm755 target/release/exa $(PREFIX)/bin/ - install -Dm644 contrib/man/*.1 -t $(PREFIX)/share/man/man1/ + # BSD and OSX don't have -D to create leading directories + install -dm755 $(PREFIX)/bin/ $(PREFIX)/share/man/man1/ + install -sm755 target/release/exa $(PREFIX)/bin/ + install -m644 contrib/man/*.1 $(PREFIX)/share/man/man1/ install: build $(INSTALL)