Merge pull request #73 from lilydjwg/master

Use the "install" program to install
This commit is contained in:
Ben S 2015-08-01 22:49:22 +01:00
commit b6af699bbb

View File

@ -15,8 +15,10 @@ build-no-git:
INSTALL = $(PREFIX)/bin/exa INSTALL = $(PREFIX)/bin/exa
$(INSTALL): $(INSTALL):
cp target/release/exa $(PREFIX)/bin/ # BSD and OSX don't have -D to create leading directories
cp contrib/man/*.1 $(PREFIX)/share/man/man1/ 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) install: build $(INSTALL)