Browse Source

Makefile: be compatible with BSD and OS X

lilydjwg 10 years ago
parent
commit
9eac99cfd8
1 changed files with 4 additions and 2 deletions
  1. 4 2
      Makefile

+ 4 - 2
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)